Zapier

Updated 3 weeks ago by Romain Lapeyre

Zapier is an easy way for non-technical users to create integrations between web applications. No coding required! You can use Zapier to create a ticket in Gorgias when an action or an event happens on another application.

Setup instructions

  1. In your Gorgias account, click on IntegrationsHTTP IntegrationAdd HTTP Integration
  2. Click POST, then use the webhook URL from Zapier. You can pass arguments from Gorgias to Zapier using headers
    (see also "How to create a ticket with a Zap" below)
  3. Select a trigger of your choice

Nice job! When the integration is triggered, your zap will run.

Create a ticket in Gorgias with a Zap

  1. In your Gorgias account, go to Settings
  2. Click on Rest API, and copy the base API URL, the username and the password
  3. Log in to your Zapier account
  4. Create a Zap with a trigger of your choice, the zap will run when that event happens
  5. The following window will open up in order for you to add an action to your Zap:
  6. Type 'webhook' into the search bar and select 'Webhooks by Zapier'
  7. When the window below opens, please select 'Custom Request'
  8. Now let's build your request! Here's our example below:
    1. Method: POST
    2. URL: {{your base api url from step 2}}tickets 
    3. Data Pass-Through? False
    4. Data: copy and paste the code below (please just keep in mind that you should update it with your details)
      {
      "channel": "email",
      "via": "api",
      "messages": [
      {
      "channel": "email",
      "via": "api",
      "source": {
      "type": "email",
      "from": {
      "name": "Romain Lapeyre",
      "address": "romain@gmail.com"
      },
      "to": [
      {
      "name": "Gorgias support",
      "address": "support@gorgias.com"
      }
      ]
      },
      "subject": "Reset password",
      "body_text": "Can you help me reset my password?",
      "body_html": "Can you help me reset my password?",
      "from_agent": false
      }
      ]
      }
    5. Unflatten: No
    6. Basic Auth: {{username from step 2}} | {{password from step 2}}
    7. Headers: Content-Typeapplication/json
  9. In the end it should look something like this:
  10. Click Continue
  11. Click Create and continue and Zapier will try to create a Gorgias ticket
  12. Click Finish, name your Zap, and activate it

And you're all set!


What do you think? Yay or Nay?