PICKED FROM N8N.IO · CUSTOMER SUPPORT

A chat agent powered by OpenAI answers questions and keeps short-term memory. When it can't answer, it calls a second workflow as a tool. That workflow asks the user for an email address if missing, then posts a message in a Slack channel asking a team member to help.

Template by Deborah · 9.9k views on n8n.io · listed there as “Ask a human for help when the AI doesn't know the answer”

THE WORKFLOW10 NODES
◌When chat messagereceived◆OpenAI Chat Model◐Simple MemoryEWhen Executed byAnother Workflow⑂Check if user hasprovided email#Message Slack forhelp{}Confirm thatwe've messaged a…{}Prompt the userto provide an em…⚙︎Not sure?✦AI Agent
DIFFICULTY
Beginner
NODES
10
USES AI
Yes
PUBLISHED
February 2024

001 / WHAT HAPPENS

  1. 01

    A chat message starts the workflow through the chat trigger.

  2. 02

    An OpenAI agent with simple memory tries to answer the question.

  3. 03

    If unsure, the agent calls a 'Not sure?' tool workflow.

  4. 04

    The sub-workflow checks whether the user has given an email address and asks for one if not.

  5. 05

    With an email supplied, a Slack message asks a person to follow up, and the user is told.

WHO IT SUITS

Suits small teams adding an AI first responder to a website or app chat that need an easy handover to a person when the answer is unclear.

CONNECTS

  • OpenAI
  • Slack

002 / BEFORE YOU USE IT HERE

  • !Customer or lead details are sent to an overseas AI provider, which is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
  • !Customers' email addresses are posted into Slack, a US-hosted service, so limit who can see that channel and mention it in your privacy policy.
  • !Needs a paid OpenAI API key and your own Slack channel details; the original is an example from n8n's documentation, so test with your real questions.

LOCAL SWAP

Swap the Slack node for Microsoft Teams or a helpdesk such as Zendesk to route the handover.

Need n8n and the AI hosted in Australia? →

004 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.

We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.

Book a free call→