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
| Name | Type | Description |
|---|---|---|
| Conversation ID | String | The Gladly conversation ID. |
| Gladly Domain | Credentials | Gladly Domain |
| Environment | Credentials | Gladly QA or PROD environment Possible values: qa, com. |
| Username | Credentials | Gladly Agent Username |
| API Key | Credentials | Gladly API Key |
| Organisation ID | String | Gladly Organisation ID. Can be retrieved from /organization |
| DG API Key | String (sensitive) | DG API Key. Used to upload images |
| DG API Secret | String (sensitive) | DG API Secret. Used to upload images |
| DG Region | String | DG Region Possible values: eu, us, dev.us. |
| DG Flow ID | String | DG Flow ID |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether conversation and items retrieved successfully |
| Customer ID | String | Customer ID |
| Last Customer Item ID | String | Last Customer Item ID |
| Status | String | Conversation status Possible values: OPEN, WAITING, CLOSED. |
| Conversation Data | Object | Conversation Data Object |
| Conversation Items Data | List | Conversation Items List |
| Attachments List | List | Attachments list |
| Number of Attachments | Number | Number 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.