Templates / Chat assistant (OpenAI assistant) with Postgres memory and API calling capabalities

Chat assistant (OpenAI assistant) with Postgres memory and API calling capabalities

Needs changes

by Fernanda Silva · 6,543 views · created 2024-12-13 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs when a chat message arrives. Along the way it connects OpenAI, Postgres Chat Memory, MySQL and HTTP Request. It also calls quotation.joov.com.br and integracao-sed-alb-323570099.us-east-1.elb.amazonaws.com over HTTP.

How it runs

Trigger: When a chat message arrives.

  1. If: checks a condition and branches into true / false
  2. Edit Fields (Edit Fields (Set)): sets 2 fields: chatInput, session_id
  3. OpenAI: work with assistant, with 3 tools (External API, Knowledge Base, Products in Daatabase); memory: Postgres Chat Memory
  4. OpenAI: work with assistant, with memory: Postgres Chat Memory
  5. Edit Fields (Edit Fields (Set)): sets 2 fields: chatInput, session_id

Services it uses

OpenAIPostgres Chat MemoryMySQLHTTP Request

HTTP calls to: quotation.joov.com.br, integracao-sed-alb-323570099.us-east-1.elb.amazonaws.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • HTTP Request Tool (legacy) in Knowledge Base, External API: replace with HTTP Request node connected to the AI Agent's Tool input.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
HTTP Request Tool (legacy)
Knowledge Base, External API
HTTP Request node connected to the AI Agent's Tool input

Nodes used (7)

From the author

Workflow Description Your workflow is an intelligent chatbot, using ++OpenAI assistant++, integrated with a backend that supports WhatsApp Business, designed to handle various use cases such as sales and customer support. Below is a breakdown of its…

Excerpt from Fernanda Silva's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.