From first file to live workflow.
A practical path to building, testing, and operating your own HubSpot action.
Build your first action.
Start with one clear result, then connect it to your workflow.
index.js
exports.main = async (event) => {
const email = String(event.inputs.email ?? "");
return { text: email.trim().toLowerCase() };
};Try the input { "email": " J.Chen@Example.com " }. The returned value is { "text": "j.chen@example.com" }. Follow the quickstart to test and publish it.