Getting transcripts into your CRM
Short answer: Use your webhook as a trigger, then use the lead ID it sends to fetch the full conversation from the Enrola API. Format the conversation into one block of text and write it to the contact in your CRM, so your team can read the whole conversation in one place instead of one note per SMS.
Customers also ask:
- How do we get the full conversation into one CRM record?
- Can we see the transcript in HubSpot or Salesforce?
- Every SMS is creating a separate note in our CRM. Can we combine them?
Using the Enrola HubSpot app?
You don't need this setup. The app already logs every SMS on the contact and adds the Enrola card, which shows the whole conversation in one view. See Setting up the Enrola HubSpot app.
How it works
Enrola sends a webhook event every time an SMS is sent or received, and each event carries that single message. Logging each event on its own adds a separate note for every SMS, which quickly gets noisy.
A cleaner approach:
- The webhook triggers your automation. Each event includes the lead's Enrola ID (
leadId). - Your automation fetches the full conversation. It uses the lead ID to call the Enrola API, which returns the lead with the complete transcript.
- Your automation formats it and writes it to your CRM. The transcript lands in one place, reading like a conversation thread.
This works for all Enrola agents.
What you'll need
- Your webhook set up in Admin > Integrations > Webhook (open Webhook).
- Your Authorization Header from Admin > Integrations > API Keys (open API Keys).
- The Enrola API documentation, in Admin > Integrations > API Docs (open API Docs), if you'd like the full details of the request and response.
- An automation tool that can receive a webhook and make an HTTP GET request, such as Make, Zapier or n8n.
- Access to your CRM, or wherever you want the transcript to go.
Step 1: Set up the webhook trigger
- In your automation tool, create a new workflow that starts with a webhook trigger.
- Copy the webhook URL your tool gives you.
- In the Enrola Customer App, go to Admin > Integrations > Webhook, paste the URL, then select Save.
Enrola will now send an event to your tool every time an SMS is sent or received. The field you need is payload.leadId:
{
"event": "LEAD_TRANSCRIPT_MESSAGE",
"payload": {
"leadId": "2c7878a4-59af-493e-bb85-bc683532f142",
"leadCrmId": "CRM-12345",
"leadPhone": "+61475111111",
"direction": "INBOUND",
"agentObjectiveStatus": "ENGAGED",
"phoneStatus": "CONFIRMED",
"content": "I might be interested, can you call me later?"
}
}
For every field the webhook sends, see Webhook setup and payload reference.
Step 2: Choose when to update the transcript (optional)
Because the webhook fires on every SMS, you can add a filter straight after the trigger so only some events continue. Common choices:
payload.phoneStatusisCONFIRMED: continues on every message once the lead has replied at least once. Best for teams making follow-up calls, as the lead owner can read the SMS conversation before picking up the phone.payload.agentObjectiveStatusisGOAL_MET: continues only once the agent has met its goal. Use this if you only want the transcript at the point of conversion.- No filter: every SMS updates the transcript. The most up to date, but the most activity.
Step 3: Fetch the full transcript
Add an HTTP GET request to your automation:
GET https://platform.enrola.com.au/api/v2/leads/{id}
Replace {id} with payload.leadId from the webhook. For the full request and response details, see Admin > Integrations > API Docs (open API Docs).
Add one header:
- Name:
Authorization - Value: your Authorization Header from Admin > Integrations > API Keys (open API Keys), pasted exactly as shown. It already starts with
Basic, so don't add it again.
The response is the full lead, with the conversation in the transcript field. transcript is a flat list of messages, oldest first:
{
"id": "2c7878a4-59af-493e-bb85-bc683532f142",
"givenName": "Jane",
"familyName": "Smith",
"transcript": [
{
"createdOn": "2025-09-05T11:20:00+10:00",
"direction": "OUTBOUND",
"agentObjectiveStatus": "STARTED",
"content": "Hi Jane, following up on your enquiry..."
},
{
"createdOn": "2025-09-05T11:42:00+10:00",
"direction": "INBOUND",
"agentObjectiveStatus": "ENGAGED",
"content": "I might be interested, can you call me later?"
}
]
}
Step 4: Format the transcript
Loop through each message in transcript and turn it into one line. We recommend:
| | | StructuredContentPage 412000338384 Getting transcripts into your CRM
Then join all the lines into one block of text, one line per message:
2025-09-05T11:20:00+10:00 | OUTBOUND | STARTED | Hi Jane, following up on your enquiry...
2025-09-05T11:42:00+10:00 | INBOUND | ENGAGED | I might be interested, can you call me later?
How to do this in common tools:
- Make: an Iterator, then a Text Aggregator.
- Zapier: Looping by Zapier with a Formatter step inside the loop, then Create Text from Loop outside it.
- n8n: a Split In Batches node or a Code node to loop and join the lines.
Step 5: Write it to your CRM
Add a final step that sends the formatted transcript where your team needs it, for example:
- a note or activity on the contact in your CRM,
- a message in a Slack channel, or
- an email to the lead owner.
Match the contact using payload.leadCrmId, not the Enrola leadId. This is the crmId you sent when you created the lead.
Update one note rather than creating a new one each time. Each run fetches the whole conversation so far. If your automation creates a new note on every run, the contact ends up with several copies of a growing transcript. Where your CRM allows it, update a single note or a transcript field on the contact instead. Otherwise, filter on GOAL_MET so the transcript is written once.
Message fields
Each message in transcript includes:
createdOn: when the message was sent or received, in ISO 8601 format.direction:OUTBOUND(sent by Enrola) orINBOUND(sent by the lead).agentObjectiveStatus: the conversation's status at this message:STARTED,ENGAGEDorGOAL_MET.messageType: the kind of message, for example the first message, a Try Again or an agent reply.phoneStatus: the phone number's status at this message.content: the text of the message.
For what each value means, see Lead and agent status glossary.
Good to know
- Sync before you delete. Deleting a lead removes its conversation from the Enrola Customer App, so make sure the transcript is in your CRM first. See Stopping the agent for a lead.
- Missed events catch up. Enrola doesn't resend an event if your endpoint is down. Because each run fetches the whole conversation, the next event fills the gap. If you filter on
GOAL_METonly, a missed event won't be sent again. - No CRM? Send the transcript to Slack or email instead. To see who each conversation is with, put the lead's full name in the
crmIdfield when you send the lead. It comes back asleadCrmIdon every event.
Troubleshooting
- The API returns 403 Forbidden: your Authorization header is wrong or missing. Copy it again from Admin > Integrations > API Keys (open API Keys) and paste it exactly as shown, as the value of the
Authorizationheader. - The API returns 404 Not Found: the lead ID doesn't match a lead. Check you're using
payload.leadIdfrom the webhook, not another field. The lead may also have been deleted. transcriptis empty: the lead exists but no messages have been sent yet.- The note only has the last message: your loop is replacing the text on each pass instead of joining it. Use a text aggregation step after the loop.
- No events reach your automation: check the webhook URL is saved in Admin > Integrations > Webhook. Some tools create a new URL when you edit the workflow, so check it hasn't changed.
Still stuck? Contact support@getenrola.com.