# Zapier

### Introduction

[Zapier](https://zapier.com/) makes it simple to connect the apps you already use so they can work together and automate tasks. For example, you can connect [Google Sheets](https://www.google.com/sheets/about/) or [Airtable](https://www.airtable.com/) to Mattermix and create new images when a record is created or updated. Zapier supports over 3,000 apps, so the possibilities to automate your workflows are endless!

If it's your first time using Zapier be sure to check out the [Zapier Help Center](https://zapier.com/help).

### Connect Mattermix with Zapier

* Head to your [App integrations](https://zapier.com/app/connections)
* Click **Add connection**
* Search for **Mattermix** and select
* Fill out the form with your [API key](/api/create-api-key.md) and email
* Click **Yes, Continue**

### Getting started: Create a Zapier Trigger

Every Zap starts with a Trigger: something that tells Zapier it's time to start an automation. For example, a Trigger could be when a new field is added in a Google Sheet, a new contact is added to an email list, or when a new deal closes in your CRM.&#x20;

Not only does this start the Zapier automation, but you can also use data captured from Triggers and previous steps and pass those values down. In this example, we'll be passing values from Airtable into the Mattermix API to dynamically update values in the HTML.

![Test data from an Airtable Trigger in Zapier](/files/YjnrhDwS1YpW2Zw2smJf)

### Action: Create Image

The Create Image Action will create a new image from HTML with the Mattermix API.

#### Set HTML

Copy and paste your HTML template in the HTML field, replacing any values you want to dynamically update from the Trigger or previous steps.

![Map values from Zapier Trigger to the Mattermix HTML field in the Zapier Action](/files/xaQ6hkrjZTH1cFkSAIyr)

#### Test action

Once you've mapped values to the fields you want to update, click **Continue**. You will now be prompted to test the Action. If the request is successful you will see a response similar to the following:

```javascript
{
    "success": true,
    "url": "https://cdn.mattermix.com/images/620d5489e8b565e74ce552c1/484ec22d-bfc9-4fc8-b764-6cf8d9b91f55.png"
}
```

These values will be available in the following steps to further complete your workflow. For example, you can use the URL returned from the Mattermix API in an Action to update a record in Airtable.

![Image URL returned from Mattermix API is used to update record in Airtable](/files/iSQoY9N8wWwLPcm0u5YK)

The last step is to turn on your new Zap by clicking the *Turn on zap* button.

![Turn on your new Zap and enjoy! ](/files/658V52FWXR2aUeFllbFm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mattermix.com/integrations/zapier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
