Skip to main content

AI Tasks

Workspace AI Tasks are reusable LLM steps for ChatMaven Flow. You write the instructions and outputs once here. When a flow runs Run AI Task, variables in {{...}} resolve automatically.

Live URL: live.chatmaven.ai/workspaces/ai-tasks

Open AI Tasks​

Top bar Workspaces → sidebar AI Tasks.

AI Tasks list with presets, custom tasks, and Add AI Task

The page subtitle explains the idea: Reusable structured LLM tasks for CM Flow. Define instructions and outputs here; flow variables in {{…}} resolve automatically when a Run AI Task step runs.

The table lists Name, Key, Model, and Actions. Rows marked PRESET are built-in starters:

Preset nameKey (example)
Classify intent & urgencyclassify_intent
Extract structured fieldsextract_fields
Summarize conversationsummarize_session
Tag from form or WA responsetag_from_submission

Custom tasks you create appear in the same table. Presets show Duplicate and Edit only (no delete).


Create an AI Task​

  1. Click + Add AI Task.

AI Tasks page with Add AI Task button

  1. In New AI Task, set:

    • Display name — label shown in lists and in the flow step dropdown (for example Classify support intent).
    • Task key — unique per workspace. Use lowercase letters, numbers, and underscores only (for example classify_intent).
    • AI Instruction — describe what the model should do. Type {{ to insert flow variables (contact, form, and session values). Missing values resolve to empty at runtime.
    • Include conversation transcript — check this when the model should see the chat history.
    • Input template (optional) — extra text sent as input data. Supports {{variables}} (for example Form submission: {{_form_response}}).
  2. Under Output → flow variables, map each model field to a flow variable:

    • Output field — name of the field the model returns (for example result or summary).
    • Variable name — how you use it in the flow (for example _ai_result → {{_ai_result}}). The form shows Use in flow: {{…}} under the name.
    • Type — Text, Number, or List.
    • Description — short note for your team (placeholder: What the model should return).
    • Use + Add output field for more outputs. The trash icon removes a row (you must keep at least one).

    Use distinct variable names when you run more than one AI Task in the same flow, so outputs do not overwrite each other.

  3. Choose Model (for example gpt-4o-mini; other models appear in the list, and some are plan-locked) and set Creativity with the slider (higher = more variety). Default for a new task is often 20%.

  4. Optionally set PII scrub: inherit, off (default), standard, or strict. The UI notes values are stored for later—PII scrub is not applied until that feature ships.

  5. Click Create; Cancel closes without saving.

New AI Task modal: instructions, inputs, outputs, model, and Create

Use outputs in later steps

Paste variables such as {{_ai_result}} or {{_ai_summary}} into Message, Send Email, Condition, or Add Note after a Run AI Task step.

Preset output examples​

These are the defaults you see when you open a preset (you can change variable names when you edit):

PresetExample outputs
Summarize conversationsummary → {{_ai_summary}}
Classify intent & urgencyintent → {{_ai_intent}}, urgency → {{_ai_urgency}}, sentiment → {{_ai_sentiment}}, confidence → {{_ai_confidence}} (Number)

Edit, duplicate, or delete​

ActionHow
EditIn Actions, click the pencil. The Edit AI Task modal opens. Change fields the same way as creation, then click Update. Cancel discards changes.
DuplicateIn Actions, click the duplicate icon to copy a task, then edit the copy.
DeleteCustom tasks show a trash icon. Confirm delete when prompted. Preset tasks do not show delete.

AI Tasks Actions: duplicate, edit, and delete on a custom task

Preset task keys

On presets, Task key is locked. Helper text: Preset keys cannot be changed. You can still edit the display name, instructions, outputs, model, and creativity.


Use an AI Task in a Flow​

  1. Create or open the task under Workspaces → AI Tasks.
  2. Open Flows, edit a flow (or click Add flow), and add Run AI Task from STEPS under AI.
  3. Select the task in the right panel (the dropdown shows display name and key, for example Summarize conversation (summarize_session)). ChatMaven shows what the task Uses and what it Receives from AI.
  4. Connect the OK and Fail paths, then Save the flow.

Full step details: AI steps — Run AI Task.


Suggested use cases​

  • Summarize the conversation before assignment or email.
  • Classify intent or urgency, then branch with Condition.
  • Extract structured fields from a form or WhatsApp reply.
  • Build an email body variable, then send it with Send Email.

FAQ​

Do I configure AI Tasks on each agent?​

No. AI Tasks belong to the workspace. Any flow in that workspace can run them with the Run AI Task step.

Why is my variable empty after the task runs?​

Check that the variable name on the AI Task matches what you paste in later steps (for example {{_ai_summary}}). Also confirm the flow reaches the OK path and that inputs such as transcript or form variables exist when the task runs. If you run several AI Tasks in one flow, give each output a distinct variable name.

Can I delete a preset?​

No. Presets can be duplicated or edited, but they do not show a delete action. Preset Task key values cannot be changed.

Does PII scrub hide data today?​

Not yet. You can choose a PII scrub setting, but the product stores it for later—scrubbing is not applied until that feature ships.