Squads Vapi Assistant ID
# support
b
I'm using Vapi Squads with transient assistants (full configuration passed inline, not stored). My tool endpoints need to identify which team/account the call belongs to. My question: 1. Can I manually set an id field on a transient assistant definition that will be passed through to tool calls? 2. If not, what's the recommended way to map transient assistants to a team/account when they call tools? 3. Should I use metadata, the assistant name, or a different approach? Context: - I have 3 transient assistants in one squad (router + 2 specialists) - All need to access the same team's data when calling tools
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
You cannot set a custom
id
field on a transient assistant.
The recommended approach is to encode your team/account in the assistant's
name
field, then extract it in your tool endpoint. For example:
Copy code
json
{
  "assistant": {
    "name": "team-123-router",
    "model": { ... },
    "voice": { ... }
  }
}
Parse the
name
to identify the team when processing tool calls.
(See documentation: [Vapi Server URL Events](https://docs.vapi.ai/server-url/events)) Source: - [Vapi Server URL Events](https://docs.vapi.ai/server-url/events)