How to Pass Variables Between Squad Members?
# support
c
I'd like one squad member to have access to the data from another. I've tried prompting a member to send a variable to another member, but it doesn't work. Any ideas?
v
You can continue this conversation by mentioning me in the message.
@cybersavvy Certainly! In order to have one squad member access data from another, you'll need to implement a mechanism for data sharing between squad members. This could involve setting up a shared storage that both members can access, or creating a messaging system where members can pass messages and data to each other. If you're using VAPI, you might need to ensure that the members have the necessary permissions and capabilities to send and receive data. You may also need to check if there are specific APIs or functions provided by VAPI that facilitate inter-member communication. If you're having trouble with the implementation, please provide more details about the current setup and the specific issues you're encountering. This will help me give you more targeted advice. If VAPI has a specific function for this, I would guide you on how to use it. Otherwise, I can suggest general software design patterns that could help solve the issue.
c
Shared storage still relies on asking the user twice for identifying information @User
s
you don't need to pass variables they have access to context history so it will be shared across your assistants.
c
Thank you for that note @Shubham Bajaj! I have another question if you don't mind. I have 2 squad members. The first is a 'receptionist' that takes the caller's name and email, and updates an Airtable row. The 'receptionist' then forwards the call to the 'specialist'. The 'specialist' needs to append new data to the same caller row. How do you recommend accomplishing this? The 'specialist' needs to know the correct row to read and append. However, I do not know what data the 'specialist' has access to, so I cannot create a webhook to identify this information from Airtable. Thank you so much!
s
return the row number and save the tool call response to a variable to be used later.
6 Views