Skip to main content

Connect TimelinesAI to n8n

Install the verified TimelinesAI node in n8n to manage chats, send WhatsApp and WABA messages, and start workflows on TimelinesAI events.

TimelinesAI has a verified node for n8n. Use it to work with your TimelinesAI workspace from n8n workflows: read and manage chats in the shared inbox, send WhatsApp and WhatsApp Business (WABA) messages, and start workflows when something happens in TimelinesAI, such as a new incoming message. You don't need to write code or set up webhooks by hand.

The node works with every WhatsApp number in your workspace through one connection, including WABA numbers, with no Meta app of your own.

What the integration does

The integration adds two nodes to n8n:

Node

What it does

TimelinesAI

Runs actions in your workspace: chats, messages, files, labels, notes, reactions, WhatsApp accounts and teammates, plus WABA chats, messages, templates and analytics. It can also be used as a tool by n8n AI Agents.

TimelinesAI Trigger

Starts a workflow on TimelinesAI events, such as new messages, chat changes, calls, account status and WABA template approvals.

For WhatsApp numbers connected by QR code, you can:

  • Get chats, find them by label, account, phone or responsible teammate, and update them: rename, assign, close or reopen, mark as read.

  • Add or replace chat labels, and add internal notes.

  • Send messages to an existing chat, to a phone number or to a group, including files and voice notes.

  • Read chat history, check a message's delivery status, and react to messages.

  • Upload and manage files, list connected WhatsApp accounts, and manage teammates.

For WABA numbers, you can:

  • Get and update WABA chats, and manage their labels.

  • Send text, files or approved templates with variables, to a chat or to a phone number.

  • Read message history and delivery status, and react to messages.

  • Get WABA accounts and templates, and request account analytics.

Before you start

✅ A TimelinesAI workspace with at least one connected WhatsApp number or WABA number.

✅ Access to your workspace's Public API token (Integrations → Public API in TimelinesAI).

✅ A self-hosted n8n instance, version 2.x or later.

✅ To use the TimelinesAI Trigger, your n8n must be reachable from the internet over HTTPS. TimelinesAI sends events to n8n's webhook address, so an n8n that only runs on localhost won't receive them.

Step 1: Add the TimelinesAI node to n8n

  1. Open a workflow in n8n and click + to add a node.

  2. Search for TimelinesAI. The node has a blue verified badge.

  3. Click TimelinesAI, then Install node.

After installing, you'll see all TimelinesAI triggers and actions in the panel.

Note: You can also install it from Settings → Community Nodes → Install by entering @timelines-ai/n8n-nodes-timelinesai.

Step 2: Connect your TimelinesAI workspace

  1. In TimelinesAI, go to Integrations → Public API and copy the token.

  2. In n8n, add any TimelinesAI action to your workflow and click Connect to TimelinesAI (or create a TimelinesAI API credential under Credentials).

  3. Paste the token into API Token.

  4. Keep the default Base URL: https://app.timelines.ai/integrations/api.

  5. Click Save. n8n checks the token with your workspace and shows Connection tested successfully.

Important: The token belongs to your workspace. If anyone regenerates it in TimelinesAI, every n8n credential that uses the old token stops working with the message "TimelinesAI rejected the API token". Paste the new token into the credential to fix it.

Important: Keep the token private. Anyone with it can read your chats and send messages from your numbers.

Step 3: Build your first workflow

Reply to incoming WhatsApp messages automatically:

  1. Add TimelinesAI Trigger and select the event New Incoming Message.

  2. Add TimelinesAI with the action Send a message to a chat.

    • Set Chat to By ID with the expression {{ $json.chat.chat_id }}.

    • Enter your reply text.

  3. Activate the workflow.

TimelinesAI starts sending events to the workflow right away. When you deactivate the workflow, the subscription is removed.

Tip: Click Listen for test event on the trigger, then send a WhatsApp message to one of your numbers. You'll see the event's data in n8n and can map its fields in the next steps.

Using the TimelinesAI Trigger

  • Events: messages (new, incoming, outgoing, reaction, delivered, read, edited, deleted), chats (new, incoming, outgoing, assigned, unassigned, renamed), calls (missed, ended, recording ready, transcript ready), WhatsApp account status, and WABA message, chat, account and template events.

  • Filters: start the workflow only for one WhatsApp number (WhatsApp Account Phone) or one WABA account (WABA Account ID). Other events are ignored.

  • Webhook limit: each selected event uses one webhook of your workspace. Workspaces have 10 webhooks by default. If you need more, contact us in live chat.

  • Keep the webhook address private: TimelinesAI doesn't sign webhook requests, so anyone who knows the workflow's webhook address could send it fake events.

Note: The trigger only manages its own subscriptions. Webhooks you created for other tools (for example Make or Zapier) are not changed.

Using TimelinesAI with an AI Agent

Add an AI Agent node, click + under Tool, and choose TimelinesAI Tool. Pick the action the agent may use, for example Get many messages in a chat. The agent can then call TimelinesAI on its own, for example to read the chat history before it replies.

Example workflows

Ready-made workflows are available in the node's GitHub repository. Download a file and import it in n8n with Workflow menu → Import from File, then select your credentials.

AI Agent auto-reply: an incoming WhatsApp message starts an AI Agent, which reads the chat history with the TimelinesAI tool, then replies in the chat.

AI Agent auto-reply workflow

WABA template for new form leads: a new lead from an n8n form gets a WABA template message with their name filled in.

WABA template for form leads workflow

Log closed WABA chats to Google Sheets: each closed WABA chat is added to a Google Sheet, with the contact, phone and responsible teammate.

Closed WABA chats to Google Sheets workflow

Slack alert when an account disconnects: a WhatsApp number disconnecting, or its message sync being paused, posts an alert to Slack.

Account disconnected alert workflow

Good to know

  • Messaging quota: sending a text message uses 1 credit of your messaging quota, and a file uses 2. Other actions don't use the messaging quota, but count toward your API calls limit.

  • Sending rate: space WhatsApp messages out by about 2 seconds. For bulk sends, use Loop Over Items with a Wait node between items.

  • WABA 24-hour window: free text and files can only be sent within 24 hours of the contact's last message. Outside that window, send an approved template (Message Type: Template).

  • Inviting teammates: by default, Invite Teammate refuses an email that already belongs to a teammate, because inviting them again would change their role and team. Turn on Update Existing Teammate only when you want that.

  • Revoke Invitation deletes the invited user. Use it only for invitations your workflow created.

  • Handling errors: turn on Continue On Fail in the node's settings to keep a workflow running and handle errors item by item.

Troubleshooting

Message or problem

What to do

TimelinesAI rejected the API token

The token is wrong or was regenerated. Copy the current token from Integrations → Public API and paste it into the credential.

The TimelinesAI workspace has reached its webhook limit

Each selected trigger event uses one webhook. Select fewer events, delete webhooks you no longer use, or contact us to raise the limit.

The 24-hour WhatsApp service window is closed

Send an approved WABA template instead of free text.

The workspace messaging quota is used up

Buy more quota in TimelinesAI, or wait for the next quota period.

TimelinesAI is rate limiting these requests

Slow the workflow down, for example with Loop Over Items and a Wait node.

The trigger is active, but no events arrive

Check that the workflow is active and that your n8n is reachable from the internet over HTTPS.

A group message stays at "Sent"

For group messages and some WABA numbers, the status can stay at "Sent" even after the message arrives. Don't build workflows that wait for "Delivered" on groups.

FAQs

Do I need a paid n8n plan?

The node is free and works on self-hosted n8n.

Does the node use OAuth?

No. It connects with your workspace's Public API token, which works the same on every self-hosted n8n.

Can I use one connection for several WhatsApp numbers?

Yes. One token covers every number in your workspace. Choose the number in each action, or filter the trigger by number.

Should I use n8n, Workflow Builder, Make or Zapier?

Where can I find the full list of actions?

In the node's README on GitHub and on our developer docs.

Did this answer your question?