Toolcall sending multiple times
# support
r
How do I stop toolcall from sending the same thing multiple times? It creates mess in my Airtable and Make. @Vapi
@Vapi
v
@Radim Kopp To prevent a toolcall from sending the same thing multiple times and creating duplicates in your Airtable and Make (Integromat), you'll need to implement a method to check for existing records before making a new entry. Here are a few strategies you could use: 1. **Unique Identifier**: Ensure that every entry has a unique identifier. Before making a toolcall, check if the unique identifier already exists in your Airtable. If it does, skip the toolcall or update the existing record instead of creating a new one. 2. **Timestamps**: Use timestamps to identify the most recent entry. If a toolcall is made within a short time frame of the last entry, it could be a duplicate, and you can choose to ignore it. 3. **Status Flags**: Implement a status flag in your Airtable that marks when a record has been processed. Before making a toolcall, check the status flag and only proceed if the record hasn't been marked as processed. 4. **Deduplication Logic in Make**: Use Make's built-in deduplication functions to check for duplicates before processing the data. 5. **Webhooks**: If you're using webhooks to trigger the toolcall, ensure that the webhook is configured correctly and isn't being called multiple times for the same event. 6. **Logic in Your Code**: If you're triggering the toolcall through code, add logic to your codebase to prevent multiple submissions. This could be through session management, state checks, or a cooldown period between submissions. If you're still having trouble after implementing these strategies, please provide more details about your current setup, and I'll do my best to assist you further.
@Radim Kopp To prevent a tool from sending the same thing multiple times and creating duplicates in your Airtable and Make (Integromat) setup, you'll need to implement a mechanism to check for existing records before making a new entry. Here are a few steps you can take: 1. **Unique Identifier**: Ensure each record has a unique identifier or key. This could be a combination of fields that you can use to check if a record already exists. 2. **Check Before Insert**: Before inserting a new record, use a search or lookup function to check if a record with the same unique identifier already exists in your Airtable base. 3. **Conditional Logic**: If the record exists, you can skip the insertion or update the existing record. If it does not exist, proceed with the insertion. 4. **Tool Configuration**: Configure your tool to include this logic. This might involve scripting within the tool or setting up additional steps in your Make scenario. 5. **Error Handling**: Implement error handling to manage any exceptions or issues that arise during the check and insert process. If you need assistance with implementing these steps in your specific setup, please provide more details about the tools you are using and how they are currently configured. If there's a function within VAPI that can help with this, I can call it for you, but I would need more information about the available functions and your current workflow.
You can continue this conversation by mentioning me in the message.
s
@Radim Kopp can you share call id along with expected vs actual response?
r
I am sorry, but all my calls are in Czech, also it seems that I might have fixed it. Just made the prompt better