← All N8N workflows
AI & researchAgentConvert To FileEvolution ApiGoogle Tasks ToolOpenAI Chat Model

agente

Configured with Agent, Convert To File, Evolution Api, Google Tasks Tool, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsOpenAI Chat Model1OpenAI Chat ModelAI & modelsAssistente clinicainternoAgentIntegrationGoogle TasksGoogle Tasks ToolIntegrationMCP Google CalendarMcp Client ToolTriggerReceber MensagemTelegramTelegram TriggerData storePostgres Chat MemoryMemory Postgres ChatAI & modelsOpenAI Chat ModelOpenAI Chat ModelAI & modelsAssistente ClínicaAgentMessagingEnviar alerta decancelamentoTelegram ToolTriggerGatilho diárioSchedule TriggerAI & modelsAssistente deconfirmaçãoAgentAI & modelsAI AgentAgentData storePostgres Chat Memory1Memory Postgres ChatIntegrationMCP Google Calendar2Mcp Client ToolIntegrationMCP GMAILMcp Client ToolIntegrationMCP CALENDARMcp Client ToolMessagingTelegramTelegramAI & modelsOpenRouter Chat Model1LM Chat Open RouterTriggerWebhook1WebhookTransformEdit Fields1Edit FieldsRoutingSwitchSwitchAI & modelsOpenAIOpen AiIntegrationEvolution APIEvolution ApiTransformConvert to FileConvert To FileAI & modelsOpenAI1Open AiAI & modelsAI Agent2AgentAI & modelsOpenRouter Chat Model2LM Chat Open RouterIntegrationEvolution API2Evolution ApiSubworkflowCallToHumanTool WorkflowAI & modelsOpenAI Chat Model2OpenAI Chat ModelIntegrationREMINDEREvolution Api

Node categories in this workflow

  • AI & models
  • Integration
  • Trigger
  • Data store
  • Messaging
  • Transform
  • Routing
  • Subworkflow

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
OpenAI Chat Model1AI & modelsOpenAI Chat ModelSee node parameters
Assistente clinica internoAI & modelsAgentSee node parameters
Google TasksIntegrationGoogle Tasks ToolSee node parameters
MCP Google CalendarIntegrationMcp Client ToolSee node parameters
Receber Mensagem TelegramTriggerTelegram TriggerSee node parameters
Postgres Chat MemoryData storeMemory Postgres ChatSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Assistente ClínicaAI & modelsAgentSee node parameters
Enviar alerta de cancelamentoMessagingTelegram ToolSee node parameters
Gatilho diárioTriggerSchedule TriggerSee node parameters
Assistente de confirmaçãoAI & modelsAgentSee node parameters
AI AgentAI & modelsAgentSee node parameters
Postgres Chat Memory1Data storeMemory Postgres ChatSee node parameters
MCP Google Calendar2IntegrationMcp Client ToolSee node parameters
MCP GMAILIntegrationMcp Client ToolSee node parameters
MCP CALENDARIntegrationMcp Client ToolSee node parameters
TelegramMessagingTelegramSee node parameters
OpenRouter Chat Model1AI & modelsLM Chat Open RouterSee node parameters
Webhook1TriggerWebhookSee node parameters
Edit Fields1TransformEdit FieldsSee node parameters
SwitchRoutingSwitchSee node parameters
OpenAIAI & modelsOpen Aiaudio / transcribe
Evolution APIIntegrationEvolution Apichat-api / get-media-base64
Convert to FileTransformConvert To FiletoBinary
OpenAI1AI & modelsOpen Aiimage / analyze
AI Agent2AI & modelsAgentSee node parameters
OpenRouter Chat Model2AI & modelsLM Chat Open RouterSee node parameters
Evolution API2IntegrationEvolution Apimessages-api
CallToHumanSubworkflowTool WorkflowSee node parameters
OpenAI Chat Model2AI & modelsOpenAI Chat ModelSee node parameters
REMINDERIntegrationEvolution Apimessages-api

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • evolutionApi
  • googleTasksOAuth2Api
  • openAiApi
  • openRouterApi
  • postgres
  • telegramApi

Workflow notes

"Appointment Confirmation Assistant"

"Appointment Confirmation Assistant"

Description:

Purpose: This section contains the configuration for the Appointment Confirmation Assistant, an agent specialized in confirming scheduled appointments with patients.

Instructions for Use:

It is triggered automatically every weekday (Monday to Friday) at 08:00 AM via the Daily Trigger (Gatilho diário).

The agent retrieves all appointments scheduled for the next day using MCP Google Calendar.

It extracts each patient's phone number from the event description field.

A confirmation message is sent to each patient using the relembraAGENDAMENTO tool, asking for confirmation or rescheduling.

Important: This agent does not handle responses from patients; another agent or workflow is responsible for follow-ups.

Make sure event descriptions in Google Calendar are correctly filled to avoid errors.

"Agent Core Components (Tools, MCP, Memory, LLM Model)"

"Agent Core Components (Tools, MCP, Memory, LLM Model)"

Description:

Purpose:

This sticky note represents the essential structure of any intelligent agent: it includes access to external tools, persistent memory, the MCP system for calendar management, and a Language Model (LLM) to process natural language tasks.

Instructions for Use:

Language Model nodes (OpenAI, OpenRouter) are responsible for natural language understanding and generation.

Memory nodes (Postgres Chat Memory) maintain conversation context over multiple interactions.

MCP Tools interact with Google Calendar and other services to perform real-world actions.

Always ensure memory synchronization between the agent's context and actions performed.

If new tools are added, they must be connected both to the agent and properly described in the system message.

"Processing and Sending WhatsApp Responses"

"Processing and Sending WhatsApp Responses"

Description:

Purpose: This section is responsible for processing, formatting, and sending outbound WhatsApp messages to patients through the Evolution API.

Instructions for Use:

Messages received from the assistant agent are first reformatted by the AI Agent node to comply with WhatsApp markdown syntax (e.g., replacing bold with bold).

Once formatted, the messages are forwarded to WhatsApp using the Evolution API2 node.

Ensure proper formatting before sending to maintain a professional communication tone and avoid delivery errors.

Any future text-processing improvements should be implemented here.

Incoming WhatsApp Webhook and Message Type Handling"

Incoming WhatsApp Webhook and Message Type Handling"

Description:

Purpose: Manages the initial reception and classification of incoming WhatsApp messages from patients via the webhook system.

Instructions for Use:

The Webhook1 node captures incoming messages.

Edit Fields1 extracts structured fields such as text, image URL, audio URL, and document URL.

Switch node analyzes which type of content was received and directs the flow accordingly:

Text → Forwarded to the assistant for handling.

Image → Sent for OCR analysis.

Audio → Sent for transcription.

Document → (Currently unused, but ready for future workflows).

Keep webhook credentials updated to ensure system reliability.

"Download Audio and Convert to MP4"

"Download Audio and Convert to MP4"

Description:

Purpose: Handles retrieval, conversion, and transcription of audio files sent by patients via WhatsApp.

Instructions for Use:

Evolution API downloads the audio in base64 format.

Convert to File transforms base64 into a binary file compatible with transcription engines.

OpenAI Whisper API (via OpenAI node) transcribes the audio into text, preparing it for natural language processing.

Ensure audio formats are correctly handled (e.g., MP4/MP3) to avoid conversion or transcription failures.

Monitor for potential heavy file size issues (>25MB) which may impact performance.

"Extract Text from Images"

"Extract Text from Images"

Description:

Purpose: Processes images received via WhatsApp to extract text (OCR) and describe their visual content for further contextual analysis.

Instructions for Use:

The OpenAI1 node uses a Vision model to transcribe and describe any text or scene from incoming images.

The resulting data is interpreted by the AI Agent2, which prepares insights and recommends appropriate responses.

Image-to-text extraction is especially useful for handling prescriptions, notes, or medical documents sent by patients.

Maintain quality standards: images must be clear and high-resolution for best transcription results.

"Internal Clinic Assistant"

"Internal Clinic Assistant"

Description:

Purpose: Represents the Internal Assistant for the clinic, used exclusively by the internal team via Telegram to manage patient rescheduling and manage a purchasing reminder list.

Instructions for Use:

Triggered by staff messages sent via Telegram.

Rescheduling tasks:

Access the MCP Google Calendar to locate and manage appointments.

Extract patient contact from the event description.

Send rescheduling messages through WhatsApp using the dedicated tool.

Shopping list tasks:

Insert shopping list reminders into Google Tasks based on the staff's instructions.

Always maintain professional and empathetic tone when interacting with patients, even if the communication is indirect.

Avoid unauthorized direct patient contact without staff permission.

agente

agente

Purpose and structure

This folder contains the agente workflow. Its executable nodes use agent, convertToFile, evolutionApi, googleTasksTool, lmChatOpenAi, lmChatOpenRouter, mcpClientTool, memoryPostgresChat, openAi, scheduleTrigger, set, switch, telegram, telegramTool, telegramTrigger, toolWorkflow, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Receber Mensagem Telegram, Gatilho diário, Webhook1

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googletaskstool/1103_Googletaskstool_Telegram_Automation_Webhook.json MIT; preserve source notices.

More in AI & research