> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations

> Connect your automation to the outside world — call any API, read and write Google Sheets, manage Google Calendar, look up and update Shopify and WooCommerce orders, find Calendly bookings, detect a country, and send event invites.

## What is this?

**Integration** steps let your automation reach outside the platform: fetch or send data with an API, work with a Google Sheet or Calendar, look up or update a store order, find a Calendly booking, or connect to your events. They work on every channel.

![The builder palette showing the integration steps](https://mintcdn.com/wappigate/WfSUGB2LMXkAb83A/images/automation-steps-integrations-palette.png?fit=max\&auto=format\&n=WfSUGB2LMXkAb83A\&q=85\&s=ef8c029cf0f5ee930bd5633a55ee9ce8)

## What can I do here?

| Step | What it does |
| - | - |
| [HTTP API](#http-api) | Calls any web address, and saves parts of the reply into fields |
| [Google Sheets](#google-sheets) | Adds, updates, or reads rows in a Google Sheet |
| [Google Calendar](#google-calendar-beta) *(beta)* | Creates events or looks up appointments |
| [Shopify · Find order](#find-order-shopify-and-woocommerce) / [Woo · Find order](#find-order-shopify-and-woocommerce) | Looks up a customer's order and saves its details as variables |
| [Shopify · Update order](#shopify-update-order) | Adds a tag to, or cancels, a Shopify order you choose |
| [Woo · Update order](#woo-update-order) | Changes the status of, or adds a note to, a WooCommerce order you choose |
| [Calendly](#calendly) | One step with two actions: **Find booking** (the contact's next booking, by email) and **Create booking link** (a single-use link for one meeting type) |
| [Detect Country](#detect-country) | Works out the country from a phone number |
| [Send Event Invite](#send-event-invite) | Sends a registration button for an event |
| [Send Event QR](#send-event-qr) | Re-sends a ticket QR code |
| [WordPress](https://docs.wappigate.com/workspace/content-studio/wordpress.md) | Creates a user on your WordPress site from the contact |

## How to use it

### HTTP API

**What it does:** makes a request to any web service — yours or someone else's — and can save data from the reply into contact fields.
**When to use it:** looking up an order, creating a record in your CRM, checking stock, or telling your own system something happened.

1. **HTTP Method** — **GET**, **POST**, **PUT**, **PATCH**, or **DELETE**.
2. **Request URL** (required) — the address. You can add variables into it.
3. **Query Parameters** and **Headers** — add name/value pairs, such as an `Authorization` header.
4. **Request Body (JSON)** — the data to send, with variables if you like.
5. Click **Test API Call** and use the **Response Preview** to see the reply. If the service refuses the test, the preview shows its answer with the status, for example **Failed (status 422)**, so you can see which field or value it didn't accept. An empty answer shows **The API sent no response body**.
6. **Response Mapping** — click **Add Mapping**, choose a **JSON Path** in the reply (for example `data.user.name`), and the **field to store it in**. You can also apply an optional transformation.

> [!NOTE]
>
> Requests are made from the platform's servers, with protection against calls to internal addresses.

### Google Sheets

**What it does:** adds a row, updates a row, or fetches a value from a Google Sheet.
**When to use it:** logging leads or orders in a spreadsheet, or reading a price list.

First connect your Google account — see [Google](https://docs.wappigate.com/workspace/google/overview.md). Then:

1. **Operation** (required) — **Add New Row**, **Update Row**, or **Fetch Row Value**.
2. **Select Sheet** and **Select Tab**. If you added a tab in Google after opening the step, click **Refresh** next to **Select Tab** to reload the list.
3. For **Add New Row**, use **Column Values** to map each column to a value (variables work).
4. For **Update Row**, choose the **Reference Column** and **Reference Value** used to find the row, then set the **Columns to Update**.
5. For **Fetch Row Value**, set the **Search Criteria** (with AND matching) and choose which **Fetch Columns** to save into which fields.

*Good to know:* row 1 of the sheet must hold the column headers. If columns don't appear, click **Refresh Columns from Sheet**.

### Google Calendar *(beta)*

**What it does:** creates a calendar event or retrieves events.
**When to use it:** booking an appointment the customer chose, or checking if a slot is free.

1. **Operation** (required) — **Create Event** or **Retrieve Events**.
2. **Select Calendar**, and optionally a **Timezone** (the default is the calendar's own).
3. **Create Event:** set the **Event Title**, **Description**, **Location**, **Start Time**, and **End Time** — either a direct time or **Start Time + Minutes**. Turn on **All Day Event** for whole-day events. Dates can be read from the customer's message in several formats, such as `DD/MM/YYYY`.
4. **Retrieve Events:** search by attendee email, keyword, and a **From Date** and **To Date**, set **Max Results**, and use **Save Results** to map fields like **Event Title**, **Event Start Time**, and **Total Events Found** into custom fields.

Connect your account first — see [Google](https://docs.wappigate.com/workspace/google/overview.md).

### Find order (Shopify and WooCommerce)

**What it does:** looks up a customer's order in your store and saves its details as variables you can use in later steps. It appears in the palette as **Shopify · Find order** and **Woo · Find order**.
**When to use it:** "Where is my order?" replies — ask for an order number, look it up, and reply with the status and tracking link.

The step has two exits: **Found** and **Not found**. Connect **Found** to a message that uses the details, and **Not found** to a message that asks again.

* **Store** — which connected store to search. Leave it on **This automation's store** unless you have several.
* **Look up by**:
  * **Order number** — enter a variable that holds what the customer typed, for example from an [Ask Text](https://docs.wappigate.com/workspace/automation/steps/ask-questions.md) step. Use the **+** button to pick a variable.
  * **This contact's phone number** — finds their most recent order. Only the store's most recent orders are searched.
  * **This contact's email** — finds their most recent order by email.
* **Only show the contact's own orders** — on by default. The order's phone number or email must match this contact, so nobody can read another customer's order by guessing a number. Only turn it off if you truly want anyone with an order number to see its details.

After this step you can use these variables (use `woocommerce` instead of `shopify` for WooCommerce):

| Variable | Contains |
| - | - |
| `{{shopify.order.found}}` | Whether an order was found |
| `{{shopify.order.number}}` | The order number |
| `{{shopify.order.status}}` | The order status |
| `{{shopify.order.payment_status}}` | Payment status |
| `{{shopify.order.fulfillment_status}}` | Fulfilment status |
| `{{shopify.order.total}}` and `{{shopify.order.currency}}` | The total and its currency |
| `{{shopify.order.items}}` | The items ordered |
| `{{shopify.order.tracking_number}}` and `{{shopify.order.tracking_url}}` | Tracking details, when available |
| `{{shopify.order.status_url}}` | A link to the order status page |
| `{{shopify.order.created_at}}` | When the order was placed |

*Good to know:* WooCommerce tracking details come from the *Shipment Tracking* plugin, if your store uses it.

### Shopify · Update order

**What it does:** adds a tag to, or cancels, a Shopify order.
**When to use it:** on the **Confirm** and **Cancel** button paths of a COD message. See [COD Confirmation](https://docs.wappigate.com/workspace/integrations/cod-confirmation.md).

* **Shopify store** — the connected store this step acts on. With one store it is picked for you; with none, the step shows **No Shopify account connected** and a **Connect Shopify** button.
* **Order** — the order to change: an order number (like `#1001`) or the store's order id. Use **Add variable** to take it from what the customer typed in an Ask step, an HTTP step or a Find order step, or type it. In a store's COD automation, a new step starts with the order from the webhook.
* **Only this contact's orders** — on by default: the order must belong to this contact (matched by phone or email), so a customer can't change someone else's order. The webhook's own order is always allowed. Turn it off only when the order comes from your own system.
* **Action** — **Add tag to order** or **Cancel order**.
  * **Tag** — for example `cod-confirmed`.
  * **Cancellation reason** — Customer request, Payment declined, Fraud, Inventory, Staff error, or Other.
  * **Return items to stock** — on by default.
  * **Let Shopify email the customer** — off by default.

> [!WARNING]
>
> Cancelling can't be undone. Orders that are already cancelled or shipped are left unchanged.

*Good to know:* a step saved before the **Order** field existed keeps changing the order of the webhook that started the automation, and the page says so. Fill the **Order** field to choose another. It needs a store connected with write access to orders. If you see a reconnect notice, disconnect and reconnect Shopify. See [Shopify](https://docs.wappigate.com/workspace/integrations/shopify.md).

### Woo · Update order

**What it does:** changes the status of, or adds a note to, a WooCommerce order.
**When to use it:** on the **Confirm** and **Cancel** paths of a COD message.

* **WooCommerce store** — the connected store this step acts on (picked for you when there is only one).
* **Order** and **Only this contact's orders** — work exactly as in **Shopify · Update order** above.
* **Change order status to** — pick a status, or **Leave status unchanged**.
* **Private order note (optional)** — a note your team sees on the order. It isn't sent to the customer.

*Good to know:* finished orders (completed, cancelled, refunded) are never changed. WooCommerce puts items back in stock itself when an order is cancelled.

### Still unpaid? *(added for you)*

Abandoned-cart reminder flows include a **Still unpaid?** step before each reminder. It asks the store whether the order was already paid. **Still unpaid** continues to send the reminder; **Already paid or closed** skips it. You don't add it yourself — see [Abandoned Cart Recovery](https://docs.wappigate.com/workspace/integrations/abandoned-cart.md).

### Calendly

**What it does:** one step for a connected [Calendly](https://docs.wappigate.com/workspace/integrations/calendly.md) account. Choose the account, then an **Action**.
**When to use it:** answer "when is my meeting?" or send a customer a link to book a call.

* **Calendly account** — the connected account to use. With one account it is picked for you. With none, the step shows **No Calendly account connected** and a **Connect Calendly** button. If the chosen account was disconnected, the step says **This account is no longer connected. Choose another.**
* **Action** — **Find booking** or **Create booking link**.

**Find booking** finds the next upcoming booking of the **Email** you give — by default the contact's email (`{{contact.email}}`); use **Add variable** for another value. It then continues on **Found** or **Not found**. Connect **Found** to a message that uses the details:

| Variable | Contains |
| - | - |
| `{{calendly.booking.found}}` | Whether a booking was found |
| `{{calendly.booking.name}}` | The meeting's name |
| `{{calendly.booking.start_time}}` and `{{calendly.booking.end_time}}` | When it starts and ends |
| `{{calendly.booking.location}}` and `{{calendly.booking.join_url}}` | Where it takes place, or the video link |
| `{{calendly.booking.cancel_url}}` and `{{calendly.booking.reschedule_url}}` | Links for the customer to cancel or move it |

**Create booking link** creates a link that books **one** meeting of the **Meeting type** you choose (listed with its length, for example *30 min*) and then stops working. Choose the account first so the meeting types load. Send the link in the next message with `{{calendly.booking_link}}`.

*Good to know:* Calendly is searched by email, never by phone — the email must be one saved on the contact (or the one you give).

### Detect Country

**What it does:** works out the contact's country from their phone number (or another field) and saves it.
**When to use it:** showing prices in the right currency, or sending customers to the right team.

* **Phone Source** — the contact's phone number, or a custom field.
* **Save Country Code To** — for example `US` or `GB`.
* Optionally **Also Save Country Name To** — for example "United States".

### Send Event Invite

**What it does:** sends a registration button with an automatically built link to one of your events.
**When to use it:** inviting contacts to a webinar, workshop, or meetup.

* **Event** — choose a published event from [Event Studio](https://docs.wappigate.com/workspace/events/overview.md).
* **Message body** and **Button label**.
* **Closed message** — what customers see if registration is closed.

### Send Event QR

**What it does:** finds a contact's ticket by phone or email and re-sends its QR code.
**When to use it:** "I lost my ticket" — let customers get it again without contacting you.

* **Event** and **Lookup field** — **Phone** or **Email**, taken from the conversation.
* **Not found message** — for example "No ticket found for this phone/email."

### WordPress

**What it does:** creates a user on your WordPress site from the contact. The only action today is **Create user**.
**When to use it:** give a new customer or member an account on your site, for example after they pay or register.

First connect the site — see [Connect WordPress](https://docs.wappigate.com/workspace/content-studio/wordpress.md). Then:

1. **WordPress site** — choose the connected site.
2. **Action** — **Create user**.
3. **Email** (required) — by default the contact's email. If the contact has none, the step fails.
4. **Display name** — optional. By default the contact's name.
5. **Login name** — optional. Leave it empty to use the email address as the login.
6. **Role** — what the user may do on the site: **Subscriber** (can only sign in and edit their profile), **Contributor**, **Author**, **Editor** or **Administrator**. It starts on **Subscriber** — the safest choice.

A random password is made and never shown. The person signs in with the site's lost-password link.

**Variables you can use afterwards:** `{{wordpress.user_id}}` is the new user's id on the site. `{{wordpress.user_result}}` is `created`, or `already_exists` when a user with that email or login was already there — the automation carries on either way.

## Troubleshooting / Technical Notes

* **HTTP API returns nothing useful.** Check the URL and headers, and look at the **Response Preview**. Then check the **JSON Path** you mapped.
* **"No Google account connected."** Connect Google first — see [Google](https://docs.wappigate.com/workspace/google/overview.md).
* **Google Sheets says no columns found.** Row 1 needs headers. Then click **Refresh Columns from Sheet**.
* **Calendly · Find booking says "Not found".** The contact needs an email saved on their profile, and that email must be one of the invitees of an upcoming, active booking in the connected Calendly account.
* **Find order says "Not found" for a real order.** With **Only show the contact's own orders** on, the order's phone number or email must match the contact. Check the order number and that the contact's details match the order.
* **Update order fails.** For Shopify, the store may need to be reconnected to allow order changes; for WooCommerce, the key needs Read/Write permission.
* **Send Event Invite says registration is closed.** The event isn't published or has closed — check it in [Event Studio](https://docs.wappigate.com/workspace/events/overview.md).

## Related docs

* [Builder Steps overview](https://docs.wappigate.com/workspace/automation/steps/overview.md)
* [Shopify](https://docs.wappigate.com/workspace/integrations/shopify.md)
* [WooCommerce](https://docs.wappigate.com/workspace/integrations/woocommerce.md)
* [COD Confirmation](https://docs.wappigate.com/workspace/integrations/cod-confirmation.md)
* [Abandoned Cart Recovery](https://docs.wappigate.com/workspace/integrations/abandoned-cart.md)
* [Google](https://docs.wappigate.com/workspace/google/overview.md)
* [Event Studio](https://docs.wappigate.com/workspace/events/overview.md)
* [Custom Fields](https://docs.wappigate.com/workspace/contacts/custom-fields.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.