Zendesk Get WhatsApp Messages

Inputs

NameTypeDescription
CommentsListArray of comment objects from Zendesk, containing metadata and message content

Outputs

NameTypeDescription
SuccessBooleanIndicates whether the WhatsApp message was successfully extracted
FirstMessageStringThe first message in the WhatsApp chat transcript, based on the initial timestamp sequence

Notes

  • Ensure that the Comments array includes at least one chat_transcript-type comment in the via.channel field for message extraction.
  • The function extracts the message from plain_body under the format (timestamp) User: Message.