Record DG Analytics from Gorgias
In order to setup analytics for Gorgias tickets you need to setup an integration in your Gorgias account.
Create Integration
Go to Settings > Integrations > HTTP Integration > New Integration
Add a name and description to this integration so it can be easily identified in the future.
Name: DigitalGenius Analytics
Description: Send ticket analytics to DG.
In the Triggers section:
- Select Ticket message updated option
For the URL add: https://flow-server.us.dgdeepai.com/v2/execution or https://flow-server.eu.dgdeepai.com/v2/execution for US or EU regions respectively.
For HTTP Method choose POST.
Leave the Request content type and Response content type set to application/json.
By now your configuration should look like this:
Add Authentication Header
Click Add Header.
For the Key add: Authorization
For the Value we need to generate a basic token based on the DigitalGenius API Key/Secret. Once you have the API Key and Secret from the tools you need to generate a basic token from them. You can run a DigitalGenius action called: Create Basic Token for this. Use the Token output for the basic token.
Add the token to the Value field.
Your headers sections should look like this:
Add Request Body (JSON)
Now add the following JSON body field but replace the {REPLACE_ACTION_ID} with the ID of master flow:
{
"inputs": {
"csat": "{{ticket.satisfaction_survey}}",
"channel": "{{ticket.channel}}",
"subject": "{{ticket.subject}}",
"ticket_id": "{{ticket.id}}",
"from_agent": "{{ticket.from_agent}}",
"status": "{{ticket.status}}",
"last_assignee": "{{ticket.assignee_user}}",
"tags": "{{ticket.tags}}",
"email": "{{ticket.customer.email}}"
},
"action_id": "ANALYTICS FLOW ID",
"external_id": "{{ticket.id}}"
}
For a full list of available fields check here.
Now click Add Integration and you should be all set!
Updates in DigitalGenius flow builder
In the DG flow builder, find your analytics flow (e.g. [Gorgias] DG Analytics and link the flow to an external account as follows:
- Select External Key

- Add the JSON object in the External Integration Text field and leave the External Account Key field blank (or null)
{
"dgAiEmail": "[email protected]",
"name": "gorgias"
}


- Click Submit
Updated 13 days ago