n8n Google Tasks Assistant
A conversational AI agent that answers questions about your tasks by pulling live data from Google Tasks and summarizing it in natural language.
Checking a task list usually means opening an app, scanning a list, and mentally prioritizing. This assistant removes that friction — a user can simply ask "what's on my task list?" in a chat interface and get a summarized, readable answer instead of a raw list.
Trigger → Agent → Tool → Response
- Chat Trigger — the flow starts when a user sends a message (e.g. "what are my tasks today?").
- AI Agent (LangChain) — interprets the request. It's instructed via a system prompt to call the Google Tasks tool whenever the question relates to tasks, and to return a clear summary rather than a raw dump.
- OpenAI Chat Model (gpt-5-mini) — powers the agent's reasoning and language generation.
- Simple Memory (buffer window) — keeps recent conversation turns in context, so follow-up questions ("what about the urgent ones?") work naturally.
- Google Tasks Tool — fetches all tasks from a specified Google Tasks list (
getAlloperation) when the agent decides it's needed.
See workflow.json for the exact node configuration — import it into n8n to view the visual canvas.
- n8n (LangChain nodes: Agent, Chat Trigger, Memory Buffer Window)
- OpenAI API — gpt-5-mini as the reasoning/language model
- Google Tasks API — OAuth2-connected task data source
- Import
workflow.jsoninto your n8n instance (Workflows → Import from File). - Set up credentials for:
- OpenAI API (your own API key)
- Google Tasks OAuth2 (connect your Google account)
- Update the Google Task node's task list ID to point to your own Google Tasks list.
- Activate the workflow and open the chat interface to start asking about your tasks.
- Agent-decides-when-to-call-tool pattern, not a rigid script: Rather than always fetching tasks on every message, the agent is prompted to invoke the Google Tasks tool only when the question is actually about tasks — keeping the assistant conversational for other queries too.
- Buffer window memory over no memory: Chosen so the assistant can handle natural follow-up questions without the user repeating context, while keeping the memory footprint small (only recent turns, not the full history).
- getAll over filtered queries (v1 scope): Kept simple for the first version — the agent summarizes the full list itself rather than relying on API-side filtering. A tradeoff between simplicity and precision for large task lists.
- Currently read-only — the agent can view tasks but not create, complete, or edit them. Adding write operations (mark complete, add task) would be a natural v2.
- No filtering by due date or priority at the API level yet; relies on the LLM to summarize sensibly, which may not scale well with very long task lists.
- Single task list only — no support yet for switching between multiple Google Tasks lists.