constant-blue•15mo ago
multiple agents
Is it possible to create a bot that has multiple agents in it. I need each agent to have its own KB and to trigger on an intent or keyword. I have tried using one agent and intents but I cannot get a satisfactory solution. Is this possible or are there any other solutions? TIA
7 Replies
Yes, you can create an AI agent in Voiceflow. Here’s how you can achieve this:
1. Create an Agent:
- Start by creating an agent in Voiceflow. Each agent is powered by the data you add to it.
2. Upload Data to Knowledge Base:
- Once the agent is created, go to the Knowledge Base. Here you can click on 'Add Data Source' on the top right and add as many PDFs, URLs, or Text files as you want to power your agent.
3. Get API Key:
- Each agent in Voiceflow has its own API key. You will need this if you are using APIs to launch to production.
For more detailed steps on creating and managing agents, you can refer to the following guides:
- Quick Start Guide
- Creating and Managing Agents
By following these steps, you should be able to create an AI agent in Voiceflow.
constant-blueOP•15mo ago
That is how to create a single agent. The question was how do I create multiple agents and combine them in one bot
wee-brown•15mo ago
You can create different workflows that trigger based on different intents. To control which information is taken from the database you can use the tags API.
constant-blueOP•15mo ago
Thanks for that. Im very much a No Code type of person but I found a demo workflow with this in. Don't fully understand it but its a step in the right direction. Any advice or pointers in regards to doing this? Thanks again
sensitive-blue•15mo ago
Yes you would need to tag each document that goes into the KB like meaningfulstrategy has mentioned. Ask tico or chatgpt they can set this up for you no problem 😉
constant-blueOP•15mo ago
thanks, will try that
sensitive-blue•14mo ago
Yes, you can do this using VoiceFlow and open ai assistants if you know how to set a group of ai calls up in VoiceFlow that create a new thread, assign a user message to it and then assign an assistant and a run to execute the query. It’s a bit complicated at first but once you get it set up it works a treat. You can then load instructions for each agent in open ai assistants, as well as adding RAG via the vector db for each agent. You can then link them up in VF by adding each agent either to the original thread id created in the chat, or by creating a new thread when a new question gets asked to a different agent. You can use JavaScript / intents in conjunction with condition blocks to route your conversation to various agents as the convo unfurls.
Here is an example: www.themodalities.com
I made this for a local rock band. There are two agents connected to this chatbot, each one is a persona of the two guys in the band and responds based on who you ask the question to (Mark or Chris) in the chat, or based on which agent I’ve assigned as an expert in a particular topic. I’ve loaded all the band info into the vector database on open ai assistants.