DEV

Google Tasks

Google Tasks Connection

Put Google Tasks to Work with @Human Automations and @Human Agents

The Google Tasks Connection documents all Triggers, Actions and Query Operations available for creating automations via the Google Tasks API.

What can you do with the Google Tasks Connection?

  • Connect to the Google Tasks API in a few clicks

  • Use the related Google Tasks Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Task List Created

Triggers on: tasklists/created

Triggered when a new task list is created in Google Tasks.

Task List Updated

Triggers on: tasklists/updated

Triggered when an existing task list is updated in Google Tasks.

Task List Deleted

Triggers on: tasklists/deleted

Triggered when a task list is deleted in Google Tasks.

Task Created

Triggers on: tasks/created

Triggered when a new task is created within a task list in Google Tasks.

Task Updated

Triggers on: tasks/updated

Triggered when an existing task is updated in Google Tasks.

Task Deleted

Triggers on: tasks/deleted

Triggered when a task is deleted from a task list in Google Tasks.

Action Operations

Action: Create Task

Action: Create Task List

Action: Update Task

Action: API Request

Query Operations

Query: Find Task

Query: Find or Create Task

Query: Get Tasks by List

Example link

Obtaining Access Credentials

To obtain a Personal Access Token (PAT) for Google Tasks API (system-to-system access), follow these steps:

Prerequisites:

  1. A Google Workspace account (or a personal Google account if allowed by the API).

  2. Google Cloud Project with the Google Tasks API enabled.

Step-by-Step Guide:

1. Set Up a Google Cloud Project

  • Create a new project (or select an existing one).

  • Enable the Google Tasks API:

    • Navigate to APIs & Services > Library.

    • Search for "Google Tasks API" and enable it.

2. Create Service Account Credentials

  • Go to APIs & Services > Credentials.

  • Click "Create Credentials" > "Service Account".

  • Fill in:

    • Service account name (e.g., tasks-api-access).

    • Service account ID (auto-generated).

    • Description (optional).

  • Click "Create and Continue", then "Done".

3. Generate a Key for the Service Account

  • In Credentials, find your service account.

  • Click "Keys" > "Add Key" > "Create New Key".

  • Select JSON format and download the key file (contains private_key and client_email).

4. Delegate Domain-Wide Authority (For Workspace Accounts)

  • Open the downloaded JSON key file and note the client_email.

  • Go to Google Workspace Admin Console > Security > API Controls > Domain-wide Delegation.

  • Click "Manage Domain-Wide Delegation" > "Add New".

  • Enter:

    • Client ID (the client_email from the JSON file).

    • OAuth Scopes: https://www.googleapis.com/auth/tasks

  • Click "Authorize".

Note: Google does not provide a manual PAT UI for Tasks API. Authentication is done via service accounts + OAuth 2.0.

Configuring Webhooks

1. Enable the Google Tasks API

  • Navigate to APIs & Services > Library.

  • Search for "Google Tasks API" and ensure it is enabled for your project.

2. Verify Service Account Scopes

  • In the Credentials section, ensure your service account has the necessary OAuth scope: https://www.googleapis.com/auth/tasks.

  • This permission is required for the system to poll for changes in your task lists and tasks.

3. Configure the Connection

  • Use the Service Account JSON key obtained in the credentials section to set up your Google Tasks connection.

  • Triggers will use these credentials to monitor your account for updates.

4. Automated Event Monitoring

  • The Google Tasks API does not currently support native push notifications (webhooks).

  • @Human automatically implements webhook-like functionality through an optimized polling mechanism that checks for changes at regular intervals.

  • No manual registration of a webhook URL or domain verification is required in the Google Cloud Console.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated