π Before you start
β’ π― Define the workflow goal (e.g., qualify leads, reactivate contacts, support, collections).
β’ π§ List the necessary stages and which conditions will move a conversation forward.
ββββββββββββββββββββββββββββββββββββββββ
ποΈ Step 1 β Pipeline creation
1) Go to the Pipelines section.
2) Click Edit (top right) and then Create Pipeline.
3) Fill in:
- Pipeline Name
- Description
- Pipeline Type (available options): Sales Qualification, Lead Reactivation, Satisfaction, Support, Post Sales, Collection, Orchestrator, or Internal Assistant
4) Click Save.
π‘ Tip: use descriptive and consistent names.
ββββββββββββββββββββββββββββββββββββββββ
π§© Step 2 β Stage creation
You can create stages in two ways.
π Option A: from Pipelines
1) Inside the pipeline, click Add stage.
2) Fill in Name, Description, and Type.
Available types:
- π€ Automated: the AI handles this stage automatically.
- π€ Human Intervention: the stage is handled by a person (on the same channel as the AI).
- π¨ Escalation (recommended in all pipelines): for conversations escalated due to SEVERE_ANGER (severe anger), HUMAN_TRANSFER (request to speak with an agent), PROMPT_INJECTION (attempt to manipulate the AI), or manually escalated.
- π Checkpoint: lets you select another pipeline for quick access (pipelines can connect to each other).
π§° Option B: from Workforce > Stage Automations
1) Go to Workforce > Stage Automations.
2) Find the pipeline you created and select Create new stage (configured the same as in Option A).
β οΈ Important: always include an Escalation stage to ensure proper handling of sensitive cases.
ββββββββββββββββββββββββββββββββββββββββ
βοΈ Step 3 β Stage automation
1) Go to Workforce and select the corresponding worker.
2) Open Stage Automations.
3) In the first stage you created, click βHandle this stage with [AI Name]β. Youβll see these sections:
π― a) Objective
Describe precisely what the AI must do in this stage: actions, questions, validations, and constraints.
Suggested template (copy and adapt):
Stage objective:
- Purpose: describe the main objective (e.g., qualify the lead with 3 questions).
- Actions: detail the tasks (e.g., request monthly budget, model of interest, province).
- Constraints: indicate limits (e.g., the monthly budget amount must be provided in USD).
- Tone and style: specify the tone (e.g., formal, concise, and empathetic).
π οΈ b) Tools
If you have a catalog, a Python function, or an MCP, select it so the AI can use it in this stage. In the Objective section, explicitly indicate when and how it should be used.
Example instruction within Objective:
Whenever the person asks about products, use the 'catalogo_productos' tool.
π c) Next stages
Connect the current stage to the following ones via conditions.
- Connect stage when: specify the condition that allows progression (e.g., βwhen the human has mentioned their monthly budget, model of interest, and provinceβ).
- Next stage: choose one from the dropdown. If it doesnβt exist yet, select Create new stage.
You can configure multiple outbound connections according to different conditions.
π§ͺ d) Quick stage test (without saving)
Before saving, you can test what you wrote in the stage directly on this screen in the section called βTest this stageβs behavior.β The test:
- Runs with the configuration you see on screen.
- Doesnβt persist changes and doesnβt require saving first.
- Lets you validate prompts, logic, and tool usage.
Suggested steps:
1) Select Test stage.
2) Enter a sample message and run the test.
3) Review the simulated conversation and tool usage.
4) Adjust Objective/conditions if needed and test again.
5) When satisfied, save the changes.
ββββββββββββββββββββββββββββββββββββββββ
π§ͺ Testing and verification
β’ Verify that the Objective is met and that the AI asks/acts as expected.
β’ Check that Tools are invoked when appropriate.
β’ Confirm that conditions in Next stages route correctly.
β’ Use the Quick stage test to iterate before saving.
β’ You can test the full workflow from the βTry Nowβ menu section.
ββββββββββββββββββββββββββββββββββββββββ
π Best practices
β’ One intent per stage: keep each stage focused on a specific goal.
β’ Consistent naming: makes future maintenance easier.
β’ Clear messages: state constraints and success criteria explicitly for the AI.
ββββββββββββββββββββββββββββββββββββββββ
ποΈ Short glossary
β’ Pipeline: the workflow container (overall goal and stages).
β’ Stage: a step within the pipeline (Automated, Human Intervention, Escalation, Checkpoint).





