> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/scraping/web-scraper-api/integrations/google-gmail-integration.md).

# Google Gmail Integration

**Description of Google Gmail Integration Function**\
Through the Gmail integration function, you can automatically send the results of Web Scraper crawling tasks to a specified email address, enabling email distribution, archiving, or team sharing of data results. You can also automatically send notifications to designated systems when specific events occur in crawling tasks, allowing you to keep track of task status in real-time or push data to other services.

**Integration Configuration:**

1. **Integration Function Name**\
   Customize a name for this integration task to facilitate your subsequent management and identification. It is recommended to name it based on the purpose or crawling object, such as "Upload Product Review Results to Gmail".
2. **Event Type Settings**

* **Specify Task ID**\
  Suitable for sending results from specific, known scraping tasks to Gmail.\
  Ideal for handling results from multiple task IDs of a single scraping tool.\
  Use English commas to separate multiple task IDs.\
  Supports up to 10 task IDs.
* **Follow Task**\
  Automatically uploads all future results generated by the scraper to Gmail.\
  One-time configuration that remains in effect unless manually disabled or deleted.\
  Best suited for continuous or recurring scraping tasks requiring automated data archiving.
* **Key Events**

  Running: Task is currently in progress

  Task Success: The scraping task completed successfully and returned results

  Task Failure: The scraping task did not return any data or encountered an error

3. **Email Sending Parameters**

<details>

<summary><code>email</code>, <strong>email address (required)</strong></summary>

The Google email address used to receive the result files.

</details>

<details>

<summary><code>subject</code>, <strong>email subject (required)</strong></summary>

Used to define the email’s title.

</details>

<details>

<summary><code>file_type</code>, <strong>file format (required)</strong></summary>

For Amazon products, results can be sent in either JSON or CSV format. For YouTube products, results can only be sent as a file format.\
Parameter values: `JSON`, `CSV`, `Download link`

</details>

If you need further assistance, please contact us at <support@thordata.com>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://doc.thordata.com/doc/scraping/web-scraper-api/integrations/google-gmail-integration.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.
