https://retellai.com/?utm_source=discord&utm_medium=seo logo
i would like to track custom values from the conve...
# ❓・ai-evy-support
b
@AI Evy i would like to track custom values from the conversation the Retell ai agendt is having with the user to add to a GHL workflow that give call results into GHL. i am creating if/else statements and these are the custom values i need Branch 1: Appointment Booked IF Condition: Field/Variable: custom_values.call_outcome (Or look for "Webhook Data" → "call_outcome") Operator: equals or is equal to Value: appointment_booked Then Add Actions: Move to Pipeline Stage: "Scheduled - No Deposit" Add Tag: "Retell - Appointment Booked" Create Task (as described earlier) Branch 2: Callback Scheduled ELSE IF Condition: Field/Variable: custom_values.call_outcome Operator: equals Value: callback_scheduled Then Add Actions: Add Tag: "Retell - Callback Scheduled" Create Task (as described earlier) Branch 3: Not Interested ELSE IF Condition: Field/Variable: custom_values.call_outcome Operator: equals Value: not_interested Then Add Actions: Move to Pipeline Stage: "Not Interested" Add Tag: "Retell - Not Interested" Remove Tag: "Hot Lead" Branch 4: No Answer ELSE IF Condition: Field/Variable: custom_values.call_outcome Operator: equals Value: no_answer Then Add Actions: Add Tag: "Retell - No Answer" Wait: 2 hours Trigger another workflow (optional retry) Branch 5: Catch-All ELSE (no condition needed - this is the final fallback): Then Add Actions: Add Tag: "Retell - Needs Review" Send internal notification 📋 The Exact Values to Match: These are the outcome values Retell will send: appointment_booked callback_scheduled not_interested no_answer info_sent
a
Thanks for tagging me @Bowman. I'll look through relevant sources and get back to you shortly.
[(2) ]() [(1) ]() ### 3. Access the Custom Value in GHL In your GHL workflow, reference the custom value as: [(1) ]() -
custom_analysis_data.call_outcome
or -
call_analysis.custom_analysis_data.call_outcome
depending on how GHL parses the webhook data. ### 4. Build Your If/Else Logic in GHL Your GHL workflow conditions should check: Branch 1:
custom_analysis_data.call_outcome
equals
appointment_booked
Branch 2:
custom_analysis_data.call_outcome
equals
callback_scheduled
Branch 3:
custom_analysis_data.call_outcome
equals
not_interested
Branch 4:
custom_analysis_data.call_outcome
equals
no_answer
Branch 5: Catch-all for any other values ## Important Notes: - Custom post-call analysis fields are only populated for calls that were connected and had a conversation. - The
call_analyzed
webhook is triggered after call analysis is complete. [(2) ]() - You can also retrieve this data via the Get Call API if needed. [(1) ]()
### Answer To track custom values like
call_outcome
from Retell AI conversations and route them to GoHighLevel (GHL) workflows, you need to use Post-Call Analysis with custom analysis fields and Webhooks. [(1) ]() [(2) ]() ## Setup Steps: ### 1. Configure Custom Analysis Fields in Retell AI Set up a custom analysis field called
call_outcome
in your agent's Post-Call Analysis settings. [(1) ]() Define the possible values as: -
appointment_booked
-
callback_scheduled
-
not_interested
-
no_answer
-
info_sent
### 2. Configure Webhook to Send Data to GHL Set up a webhook endpoint in Retell AI to receive the
call_analyzed
event, which includes the
call_analysis
object with your custom fields. [(2) ]() [(1) ]() The webhook payload will look like this: [(2) ]()
Copy code
json
{
  "event": "call_analyzed",
  "call": {
    "call_id": "...",
    "call_analysis": {
      "custom_analysis_data": {
        "call_outcome": "appointment_booked"
      }
    }
  }
}
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] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
b
what would be the description of call outcome? @User