The Agent Chaining feature on the Inya platform empowers you to build sophisticated, multi-step conversational workflows that truly understands and adapts to your users’ needs. With this, you can design a dynamic conversation pipeline where various nodes interact, decide, and make intelligent decisions. This guide will help you craft your own interactive flow!
Agent Chaining is a visual and intuitive way to design conversation flows. Imagine it as a flowchart where each box (or node) represents a different part of the conversation. By connecting these nodes on a freeform canvas, you create a structured flow where each node handles a specific action or decision point.
Imagine your genAI agent as a chef: a single recipe (prompt) makes one dish, but Agent Chaining lets you create a full menu with appetizers, mains, and desserts!Similarly, Agent Chaining transforms a single specialized agent into a full-scale organization, with genAI ‘employees’ working across departments to solve complex business challenges.A single-prompt conversational agent may struggle with complex, multi-step interactions. A large system prompt can cause it to lose track of events. With Agent Chaining, you overcome these limitations and gain:
Greater Control: Guide your agent’s conversations through a predefined flow.
Contextual Decisions: Decision nodes enable responses based on user input and conditions.
Enhanced User Experience: Each node specializes in a purpose, making interactions smoother, natural and accurate.
Specialization: Different knowledge bases or actions can be assigned to specific steps.
Avoid Pitfalls: Prevent your agent from looping and hallucination by defining clear pathways.
Use Cases:
Customer Support: The agent follows structured troubleshooting steps and escalates to a human agent when needed.
Sales: Qualify leads with conditional questions and transfer calls when all criteria are met.
Business Owners: Create customized conversation flows for various industries like healthcare, legal, and finance, ensuring every type of query is handled accurately.
Nodes are building blocks of your conversation flow. Each node represents an independent agent, by linking them together and defining conditions, you design the conversation path your agent chain will follow.
Now that you understand the basics, it’s time to create your very first agent chain.You can create an agent chain in three ways: from scratch, using a prompt, or uploading a JSON file.
Select ‘Create from Scratch’, name your chain, choose an industry, and pick an icon.
Begin with the Start node:
A Start and User node are automatically created.
Customize the start node with a greeting message (static or prompt explaining how to start the conversation).
Build Your Flow:
Add more nodes as required by clicking on the ‘Add Node’ option at the bottom.
Quick Add: Hover over an existing node to reveal the connection points on the sides. Click on one to see a menu of compatible nodes that can be added and automatically connected to your selected node.
For default and event nodes, choose if the node should speak a static text or function dynamically according to the prompt.
For decision nodes, set up your conditions in the path and also the decision node.
Connect the nodes by dragging from one connection point to the next.
Save and Test:
Click ‘Save’ and try out your new flow to see how it works.
The canvas is your workspace for designing conversations. Think of it as a whiteboard where you visually map out each step of your conversation.
Drag & Drop: Move nodes by dragging them anywhere on the canvas.
Connect Nodes: Hover over a node to show connection points. Click and drag from a point to draw a line, then drop onto another node’s connection point to create a flow.
Zoom & Pan: Pan by clicking and dragging anywhere on the canvas. To zoom, pinch using a trackpad or scroll using a mouse.
Organization Tools: Keep your chain neat and easy to manage by using the tools available in the bottom left.
‘Fit View’ centers the flow and maximizes zoom out.
‘Auto Layout’ arranges the nodes neatly in a top-down format.
Configure: Link global knowledge bases, customize agent languages, time zones, LLM, transcriber, TTS, agent phone numbers and transfer number (if a transfer event node is set up).
GlobalPrompt: Define common agent instructions (tone, style, etc).
Manage Integrations: Connect to third-party services.
Manage Actions: Create actions to enable the agent to use the integrations. The actions can then be linked to specific nodes.