Quickstart: your first integration
From an empty workspace to a workflow running on a real trigger.
This walks the shortest honest path. Budget about twenty minutes.
1. Describe what you want
Open Build with AI in the sidebar, or type what you want into the What should your customers be able to do? prompt on Home. Both land on the same screen.
The pane states the contract plainly:
Describe what you need in plain words. fastn's agent picks the connectors, drafts the workflow, and shows you the diff before anything runs.
If you would rather start from a shape than a blank page, tap one of the example starter prompts beneath the box (these are seeded suggestions and vary by workspace) and edit it to fit.
Otherwise, write the integration the way you would explain it to a colleague:
When a HubSpot deal moves to closed-won, create a customer and a draft invoice in QuickBooks, and post a line in our #sales Slack channel.
Name the systems, the trigger, and the fields that matter. The agent asks about anything ambiguous rather than guessing.
The Approval mode chip under the message box decides how much it does unattended: Auto is the default and does not ask; Manual asks before any create, update or delete. Leave it on Auto while you are exploring.
2. Let it set up connectors and auth
The agent checks whether connectors exist for the systems you named, creates any that are missing, and handles authentication in the chat: API-key fields inline, or an OAuth form with client ID, secret and pre-filled scopes.
Anything it creates shows up under Connectors afterwards, so you can inspect it.
3. Review the draft
The agent produces a workflow and opens the editor: configuration on the left, the tool tabs on the right, and, only where code editing is enabled, the code between them. Code editing is off by default: it is a per-organization setting that fastn turns on when you ask. Until then, expect two columns rather than three; the workflow is still there, it is just written and updated by the agent rather than by you.
Work through it in this order:
The code. Where code editing is on, the middle column holds
<slug>.js, a JavaScript module exportingexport default async function(ctx). This is the workflow; everything else on the screen describes, tests or deploys it. Where it is off, read the Diagram tab instead to see what the agent wrote.Diagram → Flow. A read-only picture that AI generates from that code, with node kinds
TRIGGER,READ,PROCESS,WRITE,DECISIONandDONE. You cannot edit the graph. It regenerates when you open it after the code has changed, so it can lag a save for a moment; the Regenerate docs button refreshes it on demand.Contract. Check the input and output shapes.
Connectors. The list is extracted from the
fastn.connectors.X.Y(…)calls in your code when you save. Confirm the right actions are wired, and whether each connector is marked Per customer.Configuration (left panel). Set the execution tier and timeout. Instant is synchronous and capped at 25 seconds (2 minutes only if fastn has turned on the longer Instant timeout for your organization), Standard is asynchronous and capped at 15 minutes, Long is asynchronous and runs for up to 36 hours. Instant is the default, with a 25-second timeout; most syncs want Standard.
4. Test it
Open Test, click Use contract to populate a sample ctx.input, and choose a mode beside the run button: Live calls the real systems, Partial Mock mixes real calls with stubs, Fully Mock uses stubs only. Then hit Run Live (or Run).
If something is wrong, tell the agent rather than patching by hand. "Skip deals under $500" or "Add error handling when QuickBooks is down" and it rewrites the code, mappings and test cases together.
5. Publish and deploy
In the left panel, under PUBLISH & DEPLOY:
Publish snapshot freezes the current code and configuration as a version. The workflows list numbers them in its Latest column (
v1,v2, …), and shows a dash there (tooltip "No published version yet.") until the first one exists.Deploy to environment sends that version to an environment so it starts handling real events.
Until a snapshot is published, the workflow's Status reads Unpublished and every call returns WORKFLOW_NOT_PUBLISHED.
6. Attach a trigger
A workflow with no trigger only runs when you call it. Go to Integrations → Triggers → Add trigger and pick one:

For the HubSpot example, choose App event. The form is progressive: name it, pick the HubSpot connector, then pick a connection and an event, then add a route pointing at your workflow. Two things to know before you start: the connector cannot be changed after the trigger is created, and you cannot get past the connector step without an active connection. Without one the form stops you:
No active connection found for this connector. Connect first to use it as a trigger source.
Full field-by-field detail is in Triggers.
7. Put it in front of customers
Open Widget, click Add under INTEGRATIONS, and pick the integration you just built. Then use the Embed tab to drop it into your product. See Embedding the widget.
8. Make failure loud
Go to Health → Alerts and click Turn on failure alerts. One click turns on the two alerts most teams need: an email the moment a run fails (it goes out within about a minute) and a daily reliability check. A sync that fails quietly for six hours is a support ticket you could have avoided. Threshold alerts are evaluated every 15 minutes, and the editor autosaves: there is no Save button, and a new alert exists the moment you create it.
Last updated
Was this helpful?

