how can I make sure that multiples agents are not ...
# ask-ai
w
how can I make sure that multiples agents are not in the same room, if multiple dispatches are done?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To make sure multiple agents aren’t ending up in the same room when you have several dispatches going on, you can use explicit agent dispatch with SIP dispatch rules. Here’s a simple way to do it: 1. Create a SIP Dispatch Rule: • Use
SIPDispatchRuleIndividual
to set up a new room for each caller. • Specify which agent to dispatch by using the
roomConfig.agents
field.
Copy code
{
  "rule": {
    "dispatchRuleIndividual": {
      "roomPrefix": "call-"
    }
  },
  "name": "My dispatch rule",
  "roomConfig": {
    "agents": [
      {
        "agentName": "inbound-agent",
        "metadata": "job dispatch metadata"
      }
    ]
  }
}
Here’s what it means: • `dispatchRuleIndividual`: This creates a brand new room for each caller, so every call stays in its own space. • `roomPrefix`: Adds a prefix to the room name, like "call-123", to keep things organized. • `roomConfig.agents`: Picks which agent gets dispatched to the room. Why this helps: • Every caller gets their own private room with just one agent. • This stops multiple agents from ending up in the same room by accident. If anything’s unclear or you want to dive deeper, just let me know—I’m happy to help!