- global role context
- node-specific stage instructions
- tool access (transitions, HTTP tools, RAG, vision)
- flow logic for how the conversation moves between stages
Scenarios and conversation stages
A scenario lets you design the flow as a set of stages. At each stage, you can decide:- what the assistant should focus on
- how it should respond
- which tools it can use
- Interview Training Avatar: intro and rapport -> general background questions -> technical questions -> next steps
- Patient Intake Screening: intro -> data intake -> appointment booking -> Q&A -> end
Nodes
Akapulu implements these stages using nodes. A node contains stage instructions plus the tools the assistant can use in that stage. The model can move between nodes using transition tools.
Role messages, task messages, and context management
When a conversation starts, Akapulu begins from the node labeled start node. You can change the start node in the UI by opening the node menu (three dots in the upper-right corner of the node) and clicking Set as Start. Akapulu then builds LLM context in this order:- The start node’s role message is appended first.
- The start node’s task message is appended next.
- Any tool call context is appended as tools are invoked.
Create scenario walkthrough
Create a simple node
- Go to the Scenarios page.
- Click New.
- Click Add Node to create your first node.
- Enter a node name (for example,
Greeting). - Add a role message.
- Example:
You are an onboarding assistant for Akapulu.
- Example:
- Add a task message.
- Example:
Greet the user, ask what they want to build, and keep your response concise.
- Example:
The first node you create is the default start node. Each scenario has exactly one start node.
Shown at 1.5x speed.
Edit an existing scenario
Add another node
- Go to the Scenarios table.
- Click your target scenario.
- Click Edit in the bottom-left corner to enter edit mode.
- Click Add Node.
- Enter a node name:
Planning Phase
- Add a task message:

Add tools and transitions
Add a RAG tool and a transition function
You can add tools directly to each node.- Create a Knowledge Base.
- Open the node you want to update.
- Click + Add function at the bottom of the node.
- In the pop up modal, open the RAG Tool tab.
Throughout the Akapulu platform and docs, the terms corpus and knowledge base are used interchangeably.
- Select your desired knowledge base, then create the RAG function with:
- Name:
Akapulu_RAG - Description:
Access information on the Akapulu platform
- Name:
- In the
Greetingnode, click + Add function. - In the pop up modal, open the Transition Tool tab.
- Create a transition function with:
- Name:
transition_to_planning_phase - Description:
Once you have gathered enough information on what the user wants to build with Akapulu, use this tool to transition to the planning phase
- Name:
- Drag the probe on the right side of
transition_to_planning_phaseto thePlanning Phasenode to set the transition target.
See gif below

Completed scenario example
You have now built a simple scenario.
This scenario starts in Greeting, where the assistant asks open-ended questions about what the user wants to build with Akapulu. Once project scope is clear, it calls transition_to_planning_phase and moves into Planning Phase, where Akapulu_RAG is available to pull platform information and help shape the user’s plan.

