# Gmail Customer Support Automation with Zapier

**Action List:**

1. **Set up Maax AI API:** Ensure that the Maax AI API is properly set up and able to receive requests and send responses.\
   [Registration link](https://app.2hrdays.com/dashboard/register/) / [Dashboard link](https://app.2hrdays.com/dashboard/student-support-ai/)
2. **Create a Zapier account:** If you don't already have one, create a Zapier account.\
   [Zapier.com](https://zapier.com/)
3. **Create a new Zap**
4. **Set up email trigger in Zapier:** Configure a Zapier trigger that activates when a new email is received in your chosen email platform (e.g., Gmail, Outlook).\
   ![](/files/RbLaWS8Z7BWuDDaWvCGc)
5. **Ensure that the system is configured to avoid responding to your own emails.** \
   ![](/files/4oRCq21ZMBpubU7QvzBJ)
6. **Receive name and surname, to use it later:** Please implement two separate actions to extract the information from the email metadata, dividing it into 'name' and 'surname' as distinct data items.\
   ![](/files/FmUKFC7fGcHtzlPBseFP)\
   ![](/files/F7GZpwYfOp01aovLAZvx)
7. **Send email content to Maax AI:** Set up an action in Zapier that sends the content of the received email to the Maax AI API for processing. Maax AI receives the email content, processes it, and generates a response. Please use api-key generated in the dashboard. \
   ![](/files/VyepfmYe0WuoclxfQ2Cg)
8. **Implement a random time delay function:** to allow sufficient time for the AI to generate a comprehensive answer. You need two seperate actions in Zapier for this. We recommend setting the lower and upper score boundaries to 0 and 5, respectively.\
   ![](/files/i5VRdLor1kPuVVkuqFjD)\
   ![](/files/caS25LNkITYF19RyFhFm)\
   ![](/files/rTVP0F9tuqyJAUFiHv6M)<br>
9. **Send response back to Zapier:** Maax AI sends the generated response back to Zapier.\
   ![](/files/gKjEzqsrwpa0HElCBPWd)
10. **Set up email response action in Zapier:** Configure another action in Zapier that sends an email with the response generated by Maax AI to the customer.\
    ![](/files/flQL3FdkARspQ83kQb0R)
11. **Test the workflow:** Send a test email to ensure that the workflow is functioning correctly. You should receive an automated response generated by Maax AI.&#x20;

{% hint style="warning" %}
Initially, for a day or two, it's advisable to set the "To" field to your own email. This way, you'll receive the AI-generated responses, which you can then manually forward to the customer. This not only saves time by providing complete responses but also allows you to thoroughly test the system and identify any missing related content.
{% endhint %}


---

# 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://documentation.maax.ai/main/setup-your-integration/example-use-cases/gmail-customer-support-automation-with-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.
