https://retellai.com/?utm_source=discord&utm_medium=seo logo
in a hubspot-retell integration, in the hubspot wo...
# ❓・ai-evy-support
o
@AI Evy in a hubspot-retell integration, in the hubspot workflow, how do I write the dynamic variable so that it pulls from the relevant hubspot property?
a
Thanks for tagging me @omri. I'll look through relevant sources and get back to you shortly.
### Answer In the HubSpot workflow's "Make a Phone Call" action, you configure dynamic variables in the Dynamic Variables field using JSON format [(1) ]() . To pull from a HubSpot property, you select the contact's property token from HubSpot's token picker . All values must be surrounded by quotes . For example, if you want to pass the contact's first name, the JSON would look like:
Copy code
json
{
  "customer_name": "{{contact.firstname}}"
}
The key points are: - Use JSON format in the Dynamic Variables field - Select HubSpot property tokens (like
{{contact.firstname}}
,
{{contact.email}}
, etc.) for the values - Ensure all values are surrounded by quotes These dynamic variables will then be available in your Retell agent using the same variable names (e.g.,
{{customer_name}}
) in your prompts, begin message, or tool configurations [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] HubSpot Integration](https://docs.retellai.com/integrations/hubspot) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
o
@User how can I test this with a hubspot contact?
@AI Evy how can I test this with a hubspot contact?
a
Thanks for the follow-up, @omri. I'll get back to you soon.
### Answer To test your HubSpot-Retell integration with a contact, create a test workflow in HubSpot [(1) ]() : 1. Create a test workflow in HubSpot with the enrollment trigger set to manual enrollment 2. Add the "Make a Phone Call" action and configure your dynamic variables as shown earlier 3. Manually enroll a test contact into the workflow 4. The workflow will trigger the Retell agent to call that contact with the dynamic variables populated from their HubSpot properties You can also test the dynamic variables separately in the Retell dashboard before running the full HubSpot workflow. In the Retell web interface, you can enter dynamic variables when sending a test call directly from the platform [(2) ]() . For the HubSpot workflow specifically, once you manually enroll a contact, the agent will make the call and you can review the results in both HubSpot's activity timeline and Retell's call history [(1) ]() .
​ To learn more, see the sources I considered: [[1] HubSpot Integration](https://docs.retellai.com/integrations/hubspot) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy in retell I created a dynamic varibale: current_allocated_credit_limit then in hubspot workflow I wrote it as: { "current_allocated_credit_limit": "{{contact.current_allocated_credit_limit}}" } is this right?
a
Thanks for the follow-up, @omri. I'll get back to you soon.
### Answer Yes, your configuration looks correct [(1) ]() . In the HubSpot workflow's Dynamic Variables field, you need to use JSON format with all values surrounded by quotes . Your JSON structure is properly formatted:
Copy code
json
{
  "current_allocated_credit_limit": "{{contact.current_allocated_credit_limit}}"
}
The key requirements are: - The variable name on the left (
current_allocated_credit_limit
) should match what you reference in your Retell agent prompts using
{{current_allocated_credit_limit}}
[(2) ]() - The HubSpot token on the right (
{{contact.current_allocated_credit_limit}}
) should match the actual property name in HubSpot - All values must be surrounded by quotes [(1) ]() Once configured, you can use
{{current_allocated_credit_limit}}
in your Retell agent's prompts, begin message, or tool configurations [(2) ]() . To verify it's working, manually enroll a test contact into your workflow and check if the variable is being passed correctly by reviewing the call details in both HubSpot's activity timeline and Retell's call history [(1) ]() .
​ To learn more, see the sources I considered: [[1] HubSpot Integration](https://docs.retellai.com/integrations/hubspot) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy I'm doing everything according to your instructions but it still doesn't work when I'm doing a test call. can I get some human help?
a
Thanks for the follow-up, @omri. I'll get back to you soon.
### Answer For human support with your HubSpot integration issue, you can: 1. *Visit the [Documentation]() * [(1) ]() for additional troubleshooting guidance 2. *Hire a [certified Retell partner]() * who specializes in integrations Before reaching out, here are a few troubleshooting steps to verify: - Ensure the HubSpot property
current_allocated_credit_limit
actually exists and has a value for your test contact - Confirm you've set up default values for the dynamic variable at the agent level in Retell [(2) ]() , which serve as fallback when specific variables aren't included in the call request - Test the dynamic variable directly in the Retell web interface first (you can enter dynamic variables when sending a test call from the platform) [(3) ]() to isolate whether the issue is with HubSpot or Retell - Check that your Retell agent prompt references the variable correctly as
{{current_allocated_credit_limit}}
[(2) ]() If the variable still isn't populating, the certified partners can help diagnose the specific integration issue.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Introduction](https://docs.retellai.com/general/introduction) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] OpenAI 4.1, Version Control, and More Languages Support](https://www.retellai.com/changelog/openai-4-1-version-control-and-more-languages-support) ​
o
@AI Evy do I have to set up a default value? will it not work otherwise?
a
Thanks for the follow-up, @omri. I'll get back to you soon.
### Answer No, you don't have to set up a default value for dynamic variables to work [(1) ]() . Default values are optional fallbacks that will only be used when specific variables aren't included in the call request . Dynamic variables will work without defaults as long as you're properly passing them through the HubSpot workflow. When a dynamic variable has no assigned value and no default is set, it remains in its raw form with the curly braces intact . For your HubSpot integration, the dynamic variable should work if: - The HubSpot property exists and has a value for the contact - Your JSON in the workflow is correctly formatted (which it appears to be) - The variable is properly referenced in your Retell agent prompt as
{{current_allocated_credit_limit}}
If your variable still isn't populating during test calls, the issue is likely not related to missing default values, but rather with how the data is being passed from HubSpot or how the variable is being used in your agent configuration [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] HubSpot Integration](https://docs.retellai.com/integrations/hubspot) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.