AI Agents

AI Customer Support Assistant · WhatsApp Ready · Works for any business

12 nodes 224 116 Automatic trigger
Download

Workflow Description

An AI-powered customer support assistant operating on WhatsApp. It receives customer inquiries, processes them using advanced language models, maintains conversation history in Postgres, and sends intelligent responses back through WhatsApp for continuous support.

How it works

  1. 1.Receive customer message via WhatsApp trigger
  2. 2.Process message through AI Agent connected to OpenAI model
  3. 3.Store conversation history and context in Postgres memory
  4. 4.Send AI-generated response back to customer on WhatsApp
  5. 5.Evaluate inquiry type using conditional logic
  6. 6.Execute additional HTTP requests for external integrations if needed

Use cases

  • Answer frequent questions about products and services automatically
  • Track order status and complaints through continuous conversation
  • Provide 24/7 support without human intervention
  • Classify and route inquiries based on content analysis

Requirements

  • Active OpenAI API account with valid authentication key
  • WhatsApp Business number and WhatsApp API connection
  • Postgres database for storing conversation history and customer data
  • HTTP request permissions for external service integrations

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

AI Agent HTTP Request OpenAI WhatsApp Postgres

Details

Trigger Automatic trigger
Nodes 12
Apps 5
Views 224
Downloads 116

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (12)

/

AI Agent

Agent

#1

list_links

HTTP Request

#2

OpenAI Chat Model

OpenAI

#3

WhatsApp Trigger

Whats App Trigger

#4

cleanAnswer

Code

#5

get_page

HTTP Request

#6

24-hour window check

Code

#7

If

If

#8

Send Pre-approved Template Message to Reopen the Conversation

Whats App

#9

Send AI Agent's Answer

Whats App

#10

Postgres Users Memory

Memory Postgres Chat

#11

Sticky Note

Sticky Note

#12