kalani
kalani3w ago

API tool not populating data into airtable

Hello’, I’ve done testing and now the data that I’ve asked the agent to input is not populating . It just shows the variable. I’m using the premade agent. This is what I’m getting.
No description
No description
No description
2 Replies
Tico | Voiceflow Assistant
Here are the usual reasons why an Airtable “Create Record” call ends up saving the literal text {variable} instead of the value that’s stored in your Voiceflow variable, plus the quick fixes: 1. Variables must be inside quotes in Raw JSON
{
"records": [
{
"fields": {
"Name": "{caller_name}",
"Email": "{email}",
"Notes": "{notes}"
}
}
]
}
{
"records": [
{
"fields": {
"Name": "{caller_name}",
"Email": "{email}",
"Notes": "{notes}"
}
}
]
}
– The double-quotes on both sides of {caller_name} tell Voiceflow to swap the token for the variable’s value before the request is sent.
– If you leave the quotes off ( Name: {caller_name} ) Airtable receives the text {caller_name}. 2. Variable names are case-sensitive
{FirstName}{firstname}. Open the Variables panel (left sidebar) and copy-paste the exact name. 3. Make sure the variable has a value before the API step fires Voiceflow will still inject the token if the variable is empty, so Airtable will see {caller_name}.
• Collect the value in a Question step, or
• Assign it with a Set/JS step,
• Then branch into the API step. 4. Test inside the API step In the step, click Send Request while you’re in a Test/Prototype session: – The “Request Preview” panel should already show real values instead of {variable}.
– If you still see the tokens there, something from #1-3 isn’t configured. 5. Double-check JSON formatting Invalid JSON (curly quotes, missing commas, extra spaces) can make Airtable discard the body and create blank records. Once the body preview shows the correct data, the record will arrive in Airtable exactly as expected. Docs for reference: https://docs.voiceflow.com (see “API step → Headers, Body and Parameters” section).
kalani
kalaniOP3w ago
Still not working

Did you find this page helpful?