Skip to main content

I think the webhook body has changed when a user sends a message,

For the first message a user sends, I see the below. The body used to have the user’s message, but now it’s null. Also it’s a new part_type `language_detection_details`

Anyone else notice this?
 

"conversation_parts": {        "type": "conversation_part.list",        "conversation_parts": a          {            "type": "conversation_part",            "id": "2322",            "part_type": "language_detection_details",            "body": null,            "created_at": 1718102859,            "updated_at": 1718102859,            "notified_at": 1718102859,            "assigned_to": null,            "author": {              "id": "7189586",              "type": "bot",              "name": "Fin AI",              "email": "operator+wed4314z@intercom.io"            },            "attachments": e],            "external_id": null,            "redacted": false          }        ],        "total_count": 1      }    }  }

Hi @AlexR -- Cam from the Intercom Support Engineering team here.

Looks like you’ve had a chat with my teammate Jacob on this whos passed along the following details which I’ll echo here for completeness…

...looking at the details in your message it looks like the conversation_part that you're referencing is language_detection_details

Did_the_webhook_body_change_for_a_first_message____Community.png?expires=1718343000&signature=38ee9fec60498840b91b75d3336eeb702c6aa51a55ffcec65f69150ef066b88b&req=dSAgHs15lIdfXfMW1HO4zSmRxoC%2Bo0f2rNUELQ%3D%3D%0A&resize=516x

There wouldn't be a body associated with that. The body is for messages that are sent by the admin or the end user.

 

The very first part of a conversation is not actually stored in the conversation_parts, rather it's stored in the source attribute.

Webhooks___REST_Testing___Developer_Hub___Narnia___Intercom.png?expires=1718343000&signature=44c689bff252ea68a2198ec4d95c1a5cc095531a04c9af423dee922de5996b0e&req=dSAgHs12mINaWfMW1HO4ze2%2BFSQBq1MaebK5yQ%3D%3D%0A&resize=516x

 

You can always see a preview of what a Webhook looks like by going to the Webhooks section of your Developer Hub and hovering next to the Webhook name after you add it to your app 👇

Webhooks___REST_Testing___Developer_Hub___Narnia___Intercom.png?expires=1718343000&signature=22d4c4f128bdd9722c4be1e7a69712a2e3367674c3434b42137a1fa61535739a&req=dSAgHs12m4JdXPMW1HO4zfvCHHLeplbZmIZXKg%3D%3D%0A&resize=516x

 

You can also keep up to date with our Webhook and API changes in the Changelog page of our Developer docs.

 

Hope that helps and please do let us know if you have any follow-up questions on this 👍


Reply