How to build a workflow with AI
In TeleportHQ, you can describe a workflow in plain words and let AI build it. Open any workflow, click the AI Assistant tab in the right panel, and type what the workflow should do, for example "When the contact form is sent, save the message and email me". The AI adds and connects the steps on the canvas. You can also ask it to change or fix a workflow. Each reply shows roughly how many AI tokens it used, and a Revert button takes the change back.
Before you start
- You need AI tokens in your workspace. See What uses AI tokens, and how much?.
- Workflows are a web app feature. See What are workflows?.
- The elements, forms, pages and tables your workflow uses should already exist, so the AI can connect to them.
Steps
This example builds a workflow for a bakery's Order cake form.
- In the left sidebar, click Workflows, then click + (Add Workflow) to create a workflow, or click an existing one to open it.
- In the right panel of the workflow editor, click the AI Assistant tab, between Node Properties and Test runs.
- Optional: click one of the Example prompts to put it in the message box. You can edit it before sending.
Next to the message box, check the model. Auto suits most requests. See Choose a model below.
- In the message box ("Describe what you want the workflow to do..."), type your request. Be specific, for example:
When the Order cake form is submitted, save name, email and cake type to the orders table, email owner@mybakery.com with the details, show a success message and go to the Thank you page. - Click the send button next to the box, or press Enter.
- If the AI isn't sure whether to change the open workflow or make a new one, it shows Update current and Create new. Click the one you want.
- Watch the steps appear on the canvas. The reply ends with a summary such as "✓ Generated workflow with 6 nodes and 7 connections."
While the AI works, the send button turns into a stop button (Stop generating). If you stop, the chat says "Stopped. The workflow was not changed. Tokens used before you stopped are still charged."
Choose a model (Auto, Fast or Smart)
The model picker next to the TeleportHQ workflow AI's message box decides which AI model builds or changes your workflow:
- Auto: "Picks a model for each request, based on how complex the workflow is."
- Fast: "Quicker and cheaper. Best for small, linear workflows."
- Smart: "Slower and costs more. Best for branching logic, loops and data writes."
The choice only applies when the AI builds or changes a workflow. Questions about your workflow are always answered by the default model. The editor remembers your choice in this browser.
See what a reply cost, and take it back
Under each TeleportHQ workflow AI reply, a line shows what it cost, and a reply that changed the workflow also gets a way back:
- ≈ N tokens: about how many AI tokens building this reply used. Reading your request first is charged separately.
- Revert ("Put the workflow back the way it was before this reply"): click it to undo that reply's changes. The reply then shows Reverted.
Revert only works while the workflow is still exactly as that reply left it. If you or a later reply changed it since, you see "The workflow changed after this AI edit, so it was not reverted. Revert the later changes first, or use Undo." Revert the newest reply first, then the one before it. After you reload the editor, earlier replies keep their cost but lose Revert: use Undo instead.
When a step needs a service you haven't connected
Some TeleportHQ workflow steps need a connected service: an email or SMS service, an AI provider key, a payment provider or an app integration such as Slack.
- The service isn't connected yet. The AI doesn't add a step that would fail. It tells you what to connect and adds a setup card for it to the Issues window, under Setup Requested by the Assistant. Connect the service, then ask again to add the step. See Why does my workflow show missing configuration or security warnings?.
- The workflow is built, but some steps still need keys. The summary says "Action required" and a Configuration Required card appears in the chat. Click the button with the service's name (tooltip Configure plus the name, for example Configure SendGrid), enter the key or setting, and click Save Configuration. The item then shows Configured.
The AI can also change your project outside the workflow. It may create a database table or add columns that the workflow needs. And when the workflow handles a form's submit, that form stops saving submissions in Growth → Forms: the workflow decides where the data goes. In the main AI Assistant chat, the reply lists such changes.
Change or fix a workflow with AI
- Open the workflow and click the AI Assistant tab.
- Type what to change ("Describe what to change or fix in the workflow..."), for example
Also send the customer a confirmation email. - Or click an example such as Debug and fix errors, Add error handling, Add data validation or Optimize performance. Use the arrows next to Example prompts to see more.
If nothing needs to change, the AI answers "No changes were needed" and says why.
Check that it worked
- Click each new step and check its settings on the Node Properties tab. Replace any sample values with real ones.
- Look at the top left of the editor. If a yellow issues button appears, such as 1 issue, something still needs setting up. See Why does my workflow show missing configuration or security warnings?.
- Test important steps with Test this node…. The Test runs tab lists every test. See How to test a workflow step.
Troubleshooting
"Insufficient tokens": "Please purchase more tokens to continue." Your workspace is out of AI tokens. See What happens when I run out of AI tokens?.
"The AI is still working in another conversation. Send this once it finishes." The workflow AI works on one request at a time, across all your workflows. Wait until the other reply finishes.
"Failed to create new workflow" You chose Create new, but the new workflow couldn't be created. Try again, or start a New conversation with a shorter, clearer request.
"This workflow: removed 1 step(s) that submitted a form on their own (…)" The AI wrote a Custom JavaScript step that sends a form by itself, in a workflow that doesn't start with a visitor's click (for example, one that runs when the page loads or an input changes). TeleportHQ removes such a step and closes the gap, because a form is sent only when a visitor clicks its submit button. Later steps that used the removed step's result read false. If the form should be sent, let the visitor's click on its submit button do it, or start the workflow from that click.
The AI connected the wrong form or page Name the exact form, page, table and column in your request, for example "the Order cake form on the Home page". Then ask it to fix the step, or change the step on Node Properties.
Good to know
- Conversations: the AI Assistant tab keeps your earlier conversations with each workflow. Click Conversations (N) above the message box to see them, search, rename or delete one. Click New to start fresh.
- Ready-made workflows: there is no gallery of workflow templates. Ask the AI instead, for example "add a login workflow" or "add an add-to-cart workflow".
- The main AI Assistant chat in the editor can also create and change workflows in a web app. See What can the TeleportHQ AI Assistant do?.
- A request can be up to 10,000 characters long.