Skip to content

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.

01

Create

02

Test

03

Publish

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.

Make the handoff explicit.

outputs

Available to your next workflow step