# Connect ChatGPT to Gorgias and automate your tasks

## Why integrate ChatGPT with Gorgias

The ChatGPT to Gorgias integration helps you sync data, automate manual tasks, and keep your stack aligned — without writing code.

### Generate product descriptions and content from your Shopify catalog
When a product is created or updated in Shopify, MESA passes the details to ChatGPT and writes a ready-to-use description, title, or meta tag. Your catalog stays populated with quality content without a writer producing every piece from scratch.

### Summarize customer and order context before your team responds
When a customer reaches out, places a high-value order, or shows a churn signal, MESA passes the relevant Shopify data to ChatGPT and delivers a plain-English summary to your team through Slack or your support tool. Your team acts on context, not raw data.

### Classify and route orders using AI judgment
When an order arrives with ambiguous or complex details — a custom request, an unusual product combination, an edge case your rules don't cover — MESA passes it to ChatGPT to classify and determine the right workflow. Your order routing handles the unexpected without a rule for every scenario.

### Give your support team full Shopify context on every ticket
When a customer reaches out in Gorgias, MESA pulls their Shopify order history, tags, and customer details into the ticket automatically. Your team responds with the full picture without switching between tools to find it.

### Create and update Shopify customer records from Gorgias ticket activity
When a key detail is captured or a resolution is logged in Gorgias, MESA writes it to the corresponding Shopify customer record. Your store and your support platform stay in sync without anyone reconciling them manually after every interaction.

### Trigger Gorgias tickets from Shopify order and fulfillment events
When an order ships, a delivery is delayed, or a return is filed in Shopify, MESA opens or updates the right Gorgias ticket automatically. Your support team gets ahead of customer questions before they arrive rather than reacting after a complaint is filed.

## Build any ChatGPT and Gorgias automation
MESA helps you connect apps to automate repetitive tasks. A trigger is an event that starts a workflow, and actions are the steps that occur when it's running.

###### Customer Created  
Starts when a customer is created.  
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Customer Updated  
Starts when a customer is updated.  
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Ticket Created  
Starts when a ticket is created.  
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Ticket Updated  
Starts when a ticket is updated.  
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Create Customer  
Create a customer.  
- Channels  
- Data  
- Email  
- External ID  
- Language  
- Name  
- Timezone

###### Create Job  
Schedule the execution of a job to run.  
- Meta  
- Params  
- Scheduled Datetime  
- Type

###### Create Satisfaction Survey  
Create a new satisfaction survey.  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID

###### Create Tag  
Create a tag.  
- Decoration  
- Description  
- Name

###### Create Ticket  
Create a ticket.  
- Assignee Team  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- External ID  
- From Agent  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via

###### Create Ticket Message  
Create a message in a ticket.  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Message ID  
- Receiver  
- Sender  
- Sent Datetime  
- Source  
- Subject  
- Via

###### Create User  
Create a new user.  
- Bio  
- Email  
- External ID  
- Meta  
- Name  
- Roles

###### Delete Customer  
Remove an existing customer.

###### Delete Job  
Cancel a job at any time but keep in mind that actions that have been executed will not be reverted.

###### Delete Tag  
Remove a tag.

###### Delete Ticket  
Remove a ticket.

###### Delete Ticket's Message  
Remove a message from a ticket.

###### Delete User  
Remove a user.

###### Get List of Customers  
Obtain a list of customers.  
- ID  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Get List of Events  
Obtain a list of events.  
- ID  
- Context  
- Created Datetime  
- Data  
- Object ID  
- Object Type  
- Type  
- User ID  
- Uri

###### Get List of Jobs  
Obtain a list of jobs.  
- ID  
- Cancel Requested Datetime  
- Cancelled Datetime  
- Created Datetime  
- Ended Datetime  
- Failed Datetime  
- Info  
- Locked Datetime  
- Meta  
- Params  
- Scheduled Datetime  
- Started Datetime  
- Status  
- Type  
- User ID  
- Uri

###### Get List of Satisfaction Surveys  
Obtain a list of satisfaction surveys.  
- ID  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID  
- Uri

###### Get List of Tags  
Obtain a list of tags.  
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Get List of Ticket's Messages  
Obtain a list of all messages of a ticket.  
- ID  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Integration ID  
- Last Sending Error  
- Message ID  
- Receiver  
- Rule ID  
- Sender  
- Sent Datetime  
- Source  
- Stripped HTML  
- Stripped Text  
- Subject  
- Ticket ID  
- Via  
- Uri

###### Get List of Tickets  
Obtain a list of tickets.  
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Excerpt  
- External ID  
- From Agent  
- Integrations  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages Count  
- Meta  
- Opened Datetime  
- Requester  
- Snooze Datetime  
- Status  
- Subject  
- Tags  
- Updated Datetime  
- Via  
- Uri

###### Get List of Users  
Obtain a list of users.  
- ID  
- Active  
- Bio  
- Created Datetime  
- Deactivated Datetime  
- Email  
- External ID  
- Firstname  
- Lastname  
- Meta  
- Name  
- Roles  
- Updated Datetime

###### Merge Tags  
Merge one or more tags into another tag. Source tags will be merged into the destination tag and then deleted.  
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Retrieve Account  
Grab your account details.  
- Created Datetime  
- Deactivated Datetime  
- Domain  
- Settings  
- Status

###### Retrieve Customer  
Grab all details about a customer.  
- ID  
- Channels  
- Created Datetime  
- Data  
- Email  
- External ID  
- Firstname  
- Integrations  
- Language  
- Lastname  
- Name  
- Timezone  
- Updated Datetime

###### Retrieve Event  
Grab all details about an event.  
- ID  
- Context  
- Created Datetime  
- Data  
- Object ID  
- Object Type  
- Type  
- User ID  
- Uri

###### Retrieve Job  
Grab all details about a job.  
- ID  
- Cancel Requested Datetime  
- Cancelled Datetime  
- Created Datetime  
- Ended Datetime  
- Failed Datetime  
- Info  
- Locked Datetime  
- Meta  
- Params  
- Scheduled Datetime  
- Started Datetime  
- Status  
- Type  
- User ID  
- Uri

###### Retrieve Satisfaction Survey  
Grab all details about a satisfaction survey.  
- ID  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID  
- Uri

###### Retrieve Tag  
Grab all details about a tag.  
- ID  
- Created Datetime  
- Decoration  
- Deleted Datetime  
- Description  
- Name  
- Usage  
- Uri

###### Retrieve Ticket  
Grab all details about a ticket.  
- ID  
- Assignee User  
- Channel  
- Closed Datetime  
- Created Datetime  
- Customer  
- Events  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Messages  
- Meta  
- Opened Datetime  
- Reply Options  
- Satisfaction Survey  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via  
- Uri

###### Retrieve Ticket Message  
Grab all details about a ticket's message.  
- ID  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- Created Datetime  
- External ID  
- Failed Datetime  
- From Agent  
- Integration ID  
- Last Sending Error  
- Message ID  
- Receiver  
- Rule ID  
- Sender  
- Sent Datetime  
- Source  
- Stripped HTML  
- Stripped Text  
- Subject  
- Ticket ID  
- Via  
- Uri

###### Retrieve User  
Grab all details about an user.  
- ID  
- Active  
- Bio  
- Created Datetime  
- Deactivated Datetime  
- Email  
- External ID  
- Firstname  
- Lastname  
- Meta  
- Name  
- Roles  
- Updated Datetime

###### Update a Customer  
Modify a customer's details  
- Channels  
- Data  
- Email  
- External ID  
- Language  
- Name  
- Timezone

###### Update Job  
Modify a job.  
- Meta  
- Params  
- Scheduled Datetime  
- Status

###### Update Satisfaction Survey  
Modify a satisfaction survey's details.  
- Body Text  
- Created Datetime  
- Customer ID  
- Meta  
- Score  
- Scored Datetime  
- Sent Datetime  
- Should Send Datetime  
- Ticket ID

###### Update Tag  
Modify a tag's details.  
- Decoration  
- Description  
- Name

###### Update Ticket  
Modify a ticket's details.  
- Assignee Team  
- Assignee User  
- Channel  
- Closed Datetime  
- Customer  
- External ID  
- From Agent  
- Is Unread  
- Language  
- Last Message Datetime  
- Last Received Message Datetime  
- Meta  
- Opened Datetime  
- Snooze Datetime  
- Spam  
- Status  
- Subject  
- Tags  
- Trashed Datetime  
- Updated Datetime  
- Via

###### Update Ticket's Message  
Modify a message in a ticket.  
- Attachments  
- Body HTML  
- Body Text  
- Channel  
- External ID  
- Failed Datetime  
- From Agent  
- Message ID  
- Receiver  
- Sender  
- Sent Datetime  
- Source  
- Subject  
- Via

###### Update User  
Modify an user's information  
- Bio  
- Email  
- External ID  
- Meta  
- Name  
- New Password  
- Old Password  
- Roles

###### Upload File  
Upload a file.  
- Size  
- Name  
- Content Type  
- URL

###### Create Chat Completion  
Create a completion for the chat message.  
- Model  
- Messages  
- Frequency Penalty  
- Presence Penalty  
- Temperature  
- Top P  
- Max Tokens
