how can I pass variableValues to my tools in workf...
# support
a
how is it variableValuesas well as extracted variables to my tools calls in workflows ? i mean these https://docs.vapi.ai/api-reference/calls/create#request.body.workflowOverrides.variableValues I have to send a nested json in my api request and I would like to set my payload to be something like POST to https://my.api.com/cases/{{variableValuesPassedToWorkflowWhichIsCaseId}}/create ```payload = { "case_info": { "case_id": "{{variableValuesPassedToWorkflowWhichIsCaseId}}" , "other_id": "{{variableValuesPassedToWorkflowWhichIsOtherId}}" , "extracted_id": "{{extractedId}}" , } }
v
You can pass both
variableValues
(set as workflow overrides) and extracted variables to your tools or API Request nodes in Vapi workflows by referencing them in your payload using the
{{variableName}}
syntax. For example:
Copy code
json
{
  "case_info": {
    "case_id": "{{caseId}}",
    "other_id": "{{otherId}}",
    "extracted_id": "{{extractedId}}"
  }
}
Just ensure that
caseId
and
otherId
are set in your workflow's
variableValues
, and
extractedId
is extracted earlier in the workflow. Use these placeholders in your API Request node's URL or body, and Vapi will substitute them at runtime. Reference: [Vapi Workflows API Request documentation](https://docs.vapi.ai/workflows/nodes/api-request) Source: - [API Request Node Documentation](https://docs.vapi.ai/workflows/nodes/api-request)
a
can I also pass them in the url of the tool call in the workflow api?
k
Your issue is solved at general channel??