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

# Google Tasks

> Learn how to integrate AI agents with Google Tasks using xpander.ai. Create intelligent task workflows that automatically add, update, or complete tasks based on triggers from your apps, conversations, or calendar events.

## About Google Tasks

Google Tasks is a free, minimalist task management tool developed by Google, designed to help users create and manage to-do lists across devices.

Key features include:

* **Task Creation & Organization**: Quickly add tasks with titles, optional descriptions, due dates, and subtasks. Tasks can be organized into multiple lists to manage different projects or categories.

* **Due Dates & Reminders**: Assign due dates and times to tasks, which then appear in your Google Calendar. You can also set tasks to repeat on a regular schedule.

* **Integration with Gmail & Calendar**: Convert emails into tasks directly from Gmail, and view tasks alongside events in Google Calendar.

* **Cross-Device Sync**: Access and manage your tasks on the web or through the mobile app on Android and iOS devices, with all data syncing across platforms.

* **Simple Interface**: Google Tasks offers a clean and user-friendly interface, making it easy to create, organize, and manage tasks.

## Authentication Options

Below are possible authentication options you can choose:

<Tabs>
  <Tab title="Built-in xpander.ai Auth">
    The simplest way to connect Google Tasks is by using xpander.ai's built-in authentication:

    1. Go to the **Connectors** section in the sidebar of your xpander.ai dashboard.
    2. Select **Google Tasks** from the available integrations.
    3. Click **Sign in with Google Tasks**.
    4. Grant xpander.ai permission to access your account.
    5. Your Google Tasks integration is now ready to use.

    <Note>
      This method is recommended for most users. xpander.ai securely manages your OAuth tokens without exposing any credentials.
    </Note>
  </Tab>

  <Tab title="API Access">
    ### Generate a Google Tasks API Key

    1. Log in to your [Google Cloud Console](https://console.cloud.google.com/).

    2. Create a new project or select an existing one.\\
           <img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_1.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=f080fed4323fdfd923dbcb0d30d7c56b" alt="Img 1" width="3026" height="1539" data-path="images/connectors/google-tasks/img_1.png" />

    3. Go to the [Google Cloud API Library](https://console.cloud.google.com/apis/library).\\
           <img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_2.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=27e1c827fbc84504c1f2cf42d680b757" alt="Img 2" width="3024" height="1515" data-path="images/connectors/google-tasks/img_2.png" />

    4. Search for and select **Google Tasks API**, then click **Enable**.

    5. In the sidebar, go to **Credentials**.

    6. Click **Create credentials**, and select **API key**.\\
           <img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_3.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=f3a0d46c43dd5ca085c6e286b42f20d7" alt="Img 3" width="3034" height="1524" data-path="images/connectors/google-tasks/img_3.png" />

    7. Restrict the API key to Google Tasks API only (optional but recommended).\\
           <img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_4.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=aea7690ddfc8981a95a6f933249748a9" alt="Img 4" width="3054" height="1556" data-path="images/connectors/google-tasks/img_4.png" />

    ### Integrate Google Tasks into xpander.ai

    1. Go to the **Connectors** section in the sidebar of your xpander.ai dashboard.
    2. Select **Google Tasks** from the available integrations.
    3. Click **Other auth options**.
    4. Enter a **connector name**, e.g., "xpander-google-tasks".
    5. Select **Integration User** as the authentication mode.
    6. Select **API Key** as the authentication method.
    7. Paste the Google Tasks API key into the provided field.
    8. Choose **Basic** as the **Auth Type**.
    9. Save the configuration.\\
           <img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_5.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=ca4210cf6ddbed726f3248b5546eca4f" alt="Img 5" width="3723" height="1918" data-path="images/connectors/google-tasks/img_5.png" />

    <Warning>
      API keys provide limited functionality and are best for read-only operations on public files. For full access, use OAuth methods.
    </Warning>
  </Tab>
</Tabs>

## Integration of Google Tasks into AI Agent

Once you've configured your Google Tasks account with the authentication option(s) described above, you can integrate it into your AI agent with xpander.ai:

1. In your xpander.ai dashboard, go to the **Agent Configuration** tab and select **Tools**, then click **Add Tools**.
2. Select **Connectors**.
3. Choose **Google Tasks** with the same **connector name** you configured in the previous section (e.g., xpander-google-tasks).
4. Select the available Google Tasks operations that suit your use case.

<img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_6.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=e8f10fd1d12118b64d76f1d3415511f4" alt="Img 6" width="3299" height="1677" data-path="images/connectors/google-tasks/img_6.png" />

## Expose Google Tasks as MCP Server

Alternatively, you can also expose your Google Tasks account as an MCP server. To do so:

1. Go to the **Connectors** section in the sidebar of your xpander.ai dashboard.
2. Select **Google Tasks** with the same **connector name** you configured in the previous section (e.g., xpander-google-tasks).
3. Click **MCP Configuration**.
4. Enter the MCP configuration into the appropriate settings of the client app you want to use (e.g., Cursor, Windsurf, Claude Desktop, etc.).

<img src="https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-tasks/img_7.png?fit=max&auto=format&n=pzRhrv6nqUySeaGz&q=85&s=f6eafe1ac17dcde4cb395db643a89df6" alt="Img 7" width="3100" height="1570" data-path="images/connectors/google-tasks/img_7.png" />

## AI Agent Google Tasks Prompt Library

Below are possible prompts or use cases you can try after integrating Google Tasks into your xpander AI agent:

```
Can you clear all completed tasks from my task list {list_name}?
```

```
Can you show me all tasks in my project list {project_name}?
```

```
Can you give me details about the task {task_name} in my list {list_name}?
```

```
Can you update the task {task_name} in my list {list_name} with a new due date {due_date}?
```

## Related Resources

* [Understanding Model Context Protocol (MCP)](/guides/deploy/mcp)
* [Google Tasks API Documentation](http://developers.google.com/workspace/tasks/reference/rest)
