This guide walks through the same flow used as the running example throughout these docs: a Sales Triage flow with three AI agents. By the end you’ll have a deployed flow you can talk to, a test session that demonstrates routing, and a clear mental model for building your own multi-agent flows. Estimated time: 20 minutes.Documentation Index
Fetch the complete documentation index at: https://docs.cogniagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
What we’re building
A user opens the chat widget onacme.com, asks a question, gets routed to the right specialist, gets an answer that uses the company’s own context.
Step 1 — Create the flow
Step 2 — Set the global context
Every actor will inherit this. We write it once.Step 3 — Create the Triage agent
Click Add Actor
In the bottom toolbar. Name it Triage and click Create.Triage appears on the canvas, connected from Start.
Fill in three fields
| Field | Value |
|---|---|
| Context | Leave blank. It inherits global context. |
| Instructions | Greet the user and ask one short qualifying question to figure out whether they want to talk about product features or pricing. As soon as you know which one, hand off — don't try to answer specifics yourself. |
| Definition of Done | The user's intent is clear (product vs pricing) and the conversation has been handed off to the right specialist. |
Step 4 — Create the two specialists
Repeat the Add Actor flow twice.- Product Specialist
- Pricing Specialist
| Field | Value |
|---|---|
| Name | Product Specialist |
| Context | You are the product expert for Acme Inc. You know everything about Acme Pro and Acme Enterprise — features, integrations, security, supported channels, roadmap. |
| Instructions | Answer product questions in clear, plain language. If the user asks about pricing or plans, hand off — don't quote prices. |
Step 5 — Wire routing edges
We want Start → Triage, then Triage → Product and Triage → Pricing.Delete the auto-wired edges from Start to specialists
Click the line connecting Start to Product Specialist. Press Delete. Repeat for Start → Pricing Specialist.Only Start → Triage remains.
Draw Triage → Product Specialist
Hover the bottom of the Triage node. Drag the handle that appears onto the Product Specialist node. An edge appears.
Click the new edge and add an activation prompt
When the user asks about product features, integrations, capabilities, security, the roadmap, or how something works in the product.Click Save. A short label appears on the edge (“Product”), auto-generated by AI from the prompt.

Step 6 — Configure the widget channel
Add a Widget channel
Click Add Channel → Widget.
| Field | Value |
|---|---|
| Name | Acme website widget |
| Greeting | Hi! I’m the Acme assistant — happy to help with product or pricing questions. |
| Theme | Light |
Step 7 — Test it
Send a pricing question
how much does Acme Pro cost?Wait a few seconds. The Pricing Specialist replies with the price ($49/seat, 14-day trial) and offers volume discounts. Below the reply, the debug panel shows:
Send a follow-up question that switches topic
actually, does it support SSO?Notice the routing trace this time. The flow’s global router decides this is a cross-cutting product-capability question and replies directly using global context — a cleaner answer than handing off to Product Specialist for a one-line yes/no.

Step 8 — Deploy
Close the test drawer
Click X. The test session is saved in Conversations history with a TEST badge.
What you’ve built
- A flow with global context (Acme product blurb) inherited by every actor.
- Three actors, each with focused instructions and clear handoff rules.
- Two routing edges with activation prompts that drive the handoff decisions.
- A widget channel for inbound traffic on
acme.com. - A deployed flow that’s live and answering real questions.
Extending the flow
Things you could add next:Knowledge base
Connect a product documentation KB to Product Specialist so it can cite specific feature docs.
Calendar integration
Give Pricing Specialist a calendar integration so it can book an Enterprise quote call directly.
A Human Handoff actor
Add an actor that posts to your sales team’s Slack channel for hard cases.
Email channel
Add a Gmail channel so users can also reach the flow via email.
Lessons from this build
Write Global Context once, not on every actor
Write Global Context once, not on every actor
Both specialists and Triage share the Acme blurb. By putting it in Flow settings → Global Context, we wrote it once. Edits propagate immediately.
Activation prompts are plain language
Activation prompts are plain language
No
intent = pricing syntax. Just describe when the route should fire as if explaining to a teammate. The platform handles the matching.Definitions of Done unlock handoffs
Definitions of Done unlock handoffs
Triage’s DoD is “user’s intent is clear and handed off”. That tells the routing layer Triage is done as soon as it can identify the topic — keeping conversations from stalling.
The Test drawer is your debugger
The Test drawer is your debugger
Every routing decision is visible inline. When something misbehaves, the trace shows you where.
Next
Capabilities
Give your actors knowledge bases and integration actions.
Channels overview
Add more channels — email, Slack, phone, and more.
