Gorgias logo
Gorgias logo

All articles

HTTP request step in FlowsUpdated 21 days ago

Note: to use this feature, you should have some familiarity with making HTTP requests to communicate with other applications. Otherwise, it is recommended that you ask a developer for help.

With the HTTP request Flow steps, you can use data and execute actions from third-party apps to make your Flows more powerful and automate a variety of requests, so your team can focus on the more complex issues.



Create an HTTP request in Flows

  1. Go to Settings > Flows
  2. Create a new Flow or select a Flow that you've already built
  3. Select the + icon to add a step in the Flow, then select HTTP Request
  4. Configure the HTTP Request

    • Choose the HTTP method: GET, POST, PUT, DELETE.
    • Enter the endpoint URL and any necessary query parameters or headers.
    • For POST, PUT, and PATCH methods, specify the request bodySetting up an HTTP request as a step within the Gorgias Flow editor. There are fields to enter a request name, URL, HTTP method, and also to add headers and variables to the request.
  5. Click Test Request to ensure you get a 200 OK status code and then click Publish to set the Flow live in your connected channels.

    • By default, HTTP step will create two branches
    • Success - triggered when the request is successful, moving to the next step
    • Error - activated when the request fails or returns a status code of 400 or above, by default creates a ticket

The Flow editor in Gorgias showing an HTTP request as one of the steps in the Flow



Supported variables

You can leverage variables created from previous steps to use them in your HTTP request. These are the variables we support:

Step name
Variables you can leverageData types
Collect text replyResponse from customerString
Multiple choiceOption chosen by your customerString
Customer loginCustomer first name, last name, full name, phone numberString
Order selectionOrder number, total amount, dateNumber, date
HTTP requestAny custom variable you have generated from the HTTP request.Custom
Collect file upload (only available in JSON request body)Attachments provided by the customer.Array e.g. 
{\"upload\": 
[{\"content_type\":\"image/jpeg\",
\"url\":\"https://example.com/image.jpg
\"}]}


Access event logs

You can get data about all HTTP requests being made from your step via CSV export, directly in the HTTP request configuration. 

In the Gorgias Flow editor, selecting an HTTP request that you've added editor the step. In the upper corner, the "Download Event Logs" button is highlighted to get logs for the HTTP requess.



Use cases

Was this article helpful?
Yes
No