Gladly Get Conversation Items with Attachments

Fetches a Gladly conversation and its items, and pulls any customer attachments into DigitalGenius storage. Use it to bring a conversation and its files into a flow.

What it does

  • Retrieves the Gladly conversation and its items, with the conversation status and customer ID.
  • Finds the customer messages and downloads their attachments.
  • Re-uploads each attachment to DigitalGenius storage and returns shareable URLs and the attachment count.

Inputs

NameTypeDescription
Conversation IDStringThe Gladly conversation ID.
Gladly DomainCredentialsGladly Domain
EnvironmentCredentialsGladly QA or PROD environment Possible values: qa, com.
UsernameCredentialsGladly Agent Username
API KeyCredentialsGladly API Key
Organisation IDStringGladly Organisation ID. Can be retrieved from /organization
DG API KeyString (sensitive)DG API Key. Used to upload images
DG API SecretString (sensitive)DG API Secret. Used to upload images
DG RegionStringDG Region Possible values: eu, us, dev.us.
DG Flow IDStringDG Flow ID

Outputs

NameTypeDescription
SuccessBooleanWhether conversation and items retrieved successfully
Customer IDStringCustomer ID
Last Customer Item IDStringLast Customer Item ID
StatusStringConversation status Possible values: OPEN, WAITING, CLOSED.
Conversation DataObjectConversation Data Object
Conversation Items DataListConversation Items List
Attachments ListListAttachments list
Number of AttachmentsNumberNumber of Attachments

Notes

  • Needs Gladly credentials (domain, environment, username, API key and organisation ID), plus a DG API key, secret and flow ID for uploading the files.

API reference