Troubleshooting Guide
Step-by-step debugging for common issues with Agent.AI workflows.Before You Start
When something goes wrong:-
Check the execution log first
- Go to your workflow
- Click “Executions” or “History”
- Find the failed run
- See which action failed and why
-
Look at the error message
- What does it say exactly?
- See Error Messages Reference
-
Verify your data
- Does the object exist in HubSpot?
- Are variable values what you expect?
Workflow Won’t Run
Problem: Click “Run” but nothing happens
Check:- Is workflow saved? Look for “Saved” indicator
- Are there actions? Empty workflow won’t run
- Browser console errors? Open developer tools (F12)
- Save workflow first
- Add at least one action
- Try different browser
- Refresh page and try again
Problem: Webhook doesn’t trigger workflow
Check:- Webhook URL correct? Copy fresh URL from Agent.AI
- HubSpot workflow active? Check it’s turned on
- Test record matches trigger? Verify trigger conditions
- In Agent.AI: Copy webhook URL
- In HubSpot: Paste exact URL in webhook action
- Activate HubSpot workflow
- Create test record that matches trigger
- Check Agent.AI executions for received webhook
Problem: Scheduled workflow not running
Check:- Schedule active? Verify schedule is enabled
- Correct timezone? Check schedule time matches your timezone
- Recent runs? Look in execution history
- Verify schedule is turned on
- Check schedule time is correct
- Test manually first to ensure workflow works
- Wait for next scheduled time
Connection Issues
Problem: “HubSpot not connected”
Symptoms:- Any HubSpot action fails
- Error says “not connected” or “no credentials”
- Go to Settings → Integrations
- Find HubSpot
- Click Connect
- Log in to HubSpot
- Click Authorize
- Return to workflow and try again
Problem: “Insufficient permissions” error
Symptoms:- Workflow fails on HubSpot action
- Error mentions “scope” or “permission”
- Go to Settings → Integrations
- Disconnect HubSpot
- Reconnect HubSpot
- Grant more permissions when prompted
- Check permissions you need in OAuth Scopes
- Try workflow again
- Read contacts:
crm.objects.contacts.read
- Write contacts:
crm.objects.contacts.write
- Read deals:
crm.objects.deals.read
- Write deals:
crm.objects.deals.write
Problem: Works for you but not for other users
Symptoms:- Your runs succeed
- Other team members get errors
- Error says “not connected” or “no permissions”
- Each user: Go to Settings → Integrations
- Each user: Connect their HubSpot account
- Each user: Grant permissions
- Workflow will use their credentials when they run it
Search/Lookup Issues
Problem: “Object not found” error
Symptoms:- Lookup action fails
- Error says “not found” or “does not exist”
- Object ID correct? Check execution log
- Object exists? Look in HubSpot
- Right object type? Contact vs. Deal vs. Company
- View execution log to see exact ID used
- Search HubSpot for that ID
- If doesn’t exist: Use Search action first to get valid ID
- Verify variable has correct value
- ❌ Hardcoded ID:
object_id=123
(might not exist) - ✅ From search:
object_id={{current_deal.hs_object_id}}
Problem: Search returns no results
Symptoms:- Search action succeeds but returns empty list
[]
- Expected results but got none
- Filters too restrictive? Try removing some
- Data exists in HubSpot? Check manually
- Property names correct? Check spelling
- Start with no filters - get all results
- Add filters one by one
- Check each filter value matches HubSpot data
- Verify property names are exact (lowercase, underscores)
- Remove all filters
- Run search
- If results: Filters were wrong
- If no results: Object type or permissions issue
Problem: Can’t find property in picker
Symptoms:- Click ”+ Add Property” but can’t find property
- Property exists in HubSpot but not in Agent.AI
- Custom property not synced yet
- Wrong object type
- Property name different
- Wait a few minutes and refresh
- Verify object type matches (contact property on contacts, not deals)
- Check internal property name in HubSpot settings
- Type exact internal name manually
Variable Issues
Problem: Variable shows as empty/undefined
Symptoms:- Variable picker shows variable but value is empty
- Error says “undefined” or “cannot read property”
- Click on previous action
- See what it returned
- Check if variable was created
- Previous action failed - Variable never created
- Previous action returned nothing - Valid but empty
- Wrong variable path - Using wrong property name
- If previous action failed: Fix that action first
- If returned empty: Add If Condition to check before using
- If wrong path: Check execution log for correct structure
- ❌ Wrong:
{{contact.email}}
(missing .properties.) - ✅ Correct:
{{contact.properties.email}}
Problem: Can’t use loop variable outside loop
Symptoms:- Variable
current_deal
not available after End Loop - Error says “variable not found”
- Use loop variable only between For Loop and End Loop
- If you need value after loop: Create new variable inside loop
Problem: Variable not updating in loop
Symptoms:- Counter stays at 0
- Total not increasing
- Initialize variable BEFORE loop:
counter = 0
- INSIDE loop: Update same variable:
counter = {{counter}} + 1
- Variable name must match exactly
Update Issues
Problem: Update action doesn’t change anything
Symptoms:- Update action succeeds
- But HubSpot record unchanged
- Correct object ID? Might be updating wrong record
- Property name correct? Check spelling
- Value valid? Check type matches property
- Check execution log - which record was updated?
- Go to that record in HubSpot
- Check if property exists and is editable
- Try updating manually in HubSpot
- Updating contact
123
but looking at contact456
- Property name typo
- Read-only property
- Value wrong type (text in number field)
Problem: “Cannot update property” error
Symptoms:- Update fails with “cannot update” or “read only”
- System property (HubSpot controlled)
- Property doesn’t exist
- Missing write permission
- Check if property is system-managed (can’t update)
- Verify property exists in HubSpot settings
- Grant write permissions for that object type
- Use different property
createdate
hs_object_id
hs_lastmodifieddate
Timeline/Engagement Issues
Problem: Timeline event not appearing
Symptoms:- Create Timeline Event succeeds
- Event not in HubSpot timeline
- Right record? Check object ID
- Timeline filters? Clear filters in HubSpot
- Event type exists? For custom events
- Check execution log for object ID updated
- Go to that exact record in HubSpot
- Clear all timeline filters
- Refresh page
- For custom events: Create event type in HubSpot settings first
Problem: “Timeline events not available” error
Symptoms:- Create Timeline Event fails
- Error about availability or tier
- Upgrade to Professional or Enterprise
- OR use Create Engagement (notes) instead
- Notes work on all tiers
Problem: Engagement creation fails
Symptoms:- Create Engagement fails
- Error about associations or type
- Associations field filled? Required
- Format correct?
contact:{{contact_id}}
- Engagement type valid?
note
,call
,email
,meeting
,task
- Add associations: At least one required
- Use format:
object_type:object_id
- Check engagement type spelling (lowercase, no plural)
Loop/Condition Issues
Problem: Loop not running
Symptoms:- For Loop action runs but actions inside don’t
- List is empty
- Variable doesn’t exist
- Not a list/array
- See what “loop through” variable contains
- If
[]
(empty array): No items to loop through - If not an array: Can’t loop through it
- Check previous action returned results
- Add If Condition to check list not empty first
- Verify variable is actually a list
Problem: If Condition always TRUE (or always FALSE)
Symptoms:- Actions always run (or never run)
- Condition not evaluating correctly
- Variable values - Check execution log
- Condition syntax - Write in plain English
- Property path - Is it correct?
- Test with simple condition:
5 > 3
(should be true) - Check variable actually exists
- View execution log to see variable values
- Rewrite condition more simply
- ✅ Good:
{{deal_amount}} > 10000
- ✅ Good:
The email is not empty
- ❌ Complex:
{{deal.properties.amount}} > 10000 AND {{deal.properties.stage}} equals "proposal" AND ...
(break into multiple if statements)
Problem: Missing End Condition error
Symptoms:- Error says “End Condition required”
- Workflow won’t save
- After For Loop: Add End Condition
- After If Condition: Add End Condition
- After Else Condition: Add End Condition
Webhook Issues
Problem: Webhook data not arriving
Symptoms:- Webhook triggers workflow
- But variables are empty
- Go to HubSpot workflow
- Check webhook action
- Verify JSON payload format
- Include
_hubspot_portal
:"_hubspot_portal": "{{portal.id}}"
- Include data you need:
"contact_id": "{{contact.hs_object_id}}"
- Test HubSpot workflow
- Check Agent.AI execution log to see what was received
Debugging Workflow
Step-by-step debugging process:1. Identify Where It Failed
- Open execution log
- Find first red/failed action
- That’s where to focus
2. Check Variable Values
- Look at action before failure
- See what variables were created
- Verify values are what you expect
3. Simplify and Test
- Remove variables, use hardcoded test values
- Test action in isolation
- Once working, add variables back
4. Verify in HubSpot
- Check object exists
- Check property exists
- Try manual action in HubSpot
5. Check Permissions
- Go to Settings → Integrations
- Verify HubSpot connected
- Check OAuth Scopes
6. Test Step by Step
- Run workflow up to failing action
- Fix that action
- Continue to next action
- Repeat until workflow completes
Getting Help
When you need support:- Check execution log - Screenshot the error
- Note exact error message - Copy full text
- Document what you tried - List steps taken
- Describe expected vs actual - What should happen vs what happens
- Share workflow config - Screenshots of action settings
- Which action failed
- Error message
- Variable values from execution log
- HubSpot object ID (if relevant)
- What you expected to happen
Related Resources
Quick references:- Error Messages - Error explanations
- OAuth Scopes - Permission requirements
- HubSpot Setup - Connection setup
- Webhook Triggers - Webhook debugging
- Template Variables - Variable syntax
- Variable System - How variables work
- Action Execution - Execution flow
Last Updated: 2025-10-01