AI steps
The AI category in the STEPS palette contains Run AI Task—run a workspace AI Task from inside a flow. Create and edit tasks under Workspaces → AI Tasks; this step selects one and wires OK / Fail.
Live URL: live.chatmaven.ai/workspaces/flows
Prerequisite: create the task first. See AI Tasks.
Run AI Task
Run a workspace AI Task. Instructions, inputs, and output variables are defined on the task. In the flow you pick the task; ChatMaven resolves {{variables}} at runtime and shows what the step Uses and Receives from AI.
- Ensure the AI Task exists under Workspaces → AI Tasks.
- Open your flow. Add Run AI Task from STEPS under AI.

- Click the node. In the right panel, choose the AI Task from the dropdown. Manage tasks in Workspaces → AI Tasks—flow variables in the task resolve automatically when present.
- Review:
- Uses — what the task sends to the model (for example Conversation transcript, or variables such as
{{answer}}from the task instructions / input template). Missing values are sent as empty. - Receives from AI — output variables to paste into later steps (for example
{{_ai_result}}). Status is available as{{_ai_task_status}}.
- Uses — what the task sends to the model (for example Conversation transcript, or variables such as

- Set On error:
- Continue on failure path — follow the Fail port when the task errors (default).
- Branch to failure handle — use the failure branch / handle for error handling.
- Optionally enable Side effects:
- Add internal note from variable — turns on a Source variable field (for example
_ai_summary) and where to attach the note: Chat session and/or Contact. - Apply tags from variable — turns on a Tags variable field (for example
_ai_tags) and a target of Contact or Chat session.
- Add internal note from variable — turns on a Source variable field (for example
- Set Step gap if needed. Choose from 250 ms, 500 ms (default), 1 second, 2 seconds, 3 seconds, 4 seconds, or 5 seconds.

- Connect the OK (success) and Fail (error) ports on the canvas. For example, send
{{_ai_result}}in a Message on OK, and show a fallback message on Fail. - Save the flow (use Test in the builder when you want to try the path).

Where to create AI Tasks
Create and edit tasks under Workspaces → AI Tasks in the workspace sidebar. Full guide: AI Tasks.
Instructions and outputs
Define instructions and output variable names on the AI Task—you do not remap them on this step. The flow step only selects the task and shows Uses / Receives from AI. Edit the task under AI Tasks if you need different variables.
How it works:
When the flow reaches this step, ChatMaven runs the selected AI Task. On success, follow the OK path; output variables are available to later steps such as Message, Condition, Send Email, or Assign To. On failure, follow the Fail path according to On error.
Configuration:
| Field | Purpose |
|---|---|
| AI Task | Workspace task to run. Dropdown shows name and key. Manage tasks in Workspaces → AI Tasks. |
| Uses | Read-only summary of inputs (transcript and/or variables from the task). |
| Receives from AI | Read-only list of output variables (and {{_ai_task_status}}). |
| On error | Continue on failure path or Branch to failure handle. |
| Side effects (optional) | Add an internal note and/or apply tags from variables. Extra fields appear when each checkbox is on. |
| Step gap | Delay before the next step: 250 ms, 500 ms, or 1–5 seconds. |
Tips:
- Use Condition after the task if you branch on AI output values.
- Pair with Add Note or the side-effect checkbox to keep AI outcomes internal when you do not want raw model text shown to the contact.
- Typical email pattern: ChatMaven Form → Run AI Task → Send Email using
{{_ai_summary}}or a custom body variable. - If you chain several Run AI Task steps, use distinct output variable names on each task so later steps read the right value.
Suggested use cases
- Summarize the conversation before assignment.
- Classify intent from the last user message and route with Condition.
- Generate a draft reply or email body for handoff (internal use).
- Tag a contact or chat from a form or WhatsApp reply, then continue routing.
FAQ
Does Run AI Task work on all channels?
Yes, when the flow scope includes the channel where the conversation runs. Scope agent and channels in the flow header as usual.
What are the OK and Fail ports?
OK runs when the task succeeds. Fail runs when it errors, depending on On error. Connect both so the conversation never stops on a dead end.
What do the side-effect checkboxes do?
They write AI output into the conversation without a separate Add Note or Set Tags step. Turn on Add internal note from variable to post text from a variable (and choose Chat session / Contact). Turn on Apply tags from variable to apply tags from a list variable (and choose Contact or Chat session).
Related
- AI Tasks — Create and edit workspace tasks
- Flows overview
- Conversation steps — Condition
- Integrations — Send Email
- Routing & CRM — Add Note