AI Agents

Build an intelligent Slack agent with conversation memory

17 nodes 282 153 Automatic trigger
Download

Workflow Description

An automation that creates a smart agent within Slack, receiving user messages, maintaining conversation context through memory, and integrating with OpenAI and Twitter/X to deliver thoughtful, well-informed responses.

How it works

  1. 1.Receive messages through the Slack chat trigger
  2. 2.Process the message using OpenAI model while preserving prior context
  3. 3.Call external tools (Twitter/X) based on query requirements
  4. 4.Send the composed response back to the Slack channel
  5. 5.Store the interaction in memory for future conversations

Use cases

  • Smart assistant answering team questions directly in Slack
  • Gathering and summarizing Twitter/X data within discussions
  • Managing sequential conversations with full context understanding

Requirements

  • Active Slack workspace with message-sending permissions
  • OpenAI API key configured
  • Twitter/X credentials (optional based on use case)
  • Webhook or Bot token setup for integration

Service Value

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

Apps Used

Chat Trigger OpenAI Memory Twitter/X Slack Tool AI Agent

Details

Trigger Automatic trigger
Nodes 17
Apps 7
Views 282
Downloads 153

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 (17)

/

Sticky Note1

Sticky Note

#1

Sticky Note2

Sticky Note

#2

Sticky Note

Sticky Note

#3

Sticky Note5

Sticky Note

#4

Sticky Note4

Sticky Note

#5

Sticky Note3

Sticky Note

#6

Sticky Note6

Sticky Note

#7

When chat message received

Chat Trigger

#8

OpenAI Chat Model

OpenAI

#9

Simple Memory

Memory Buffer Window

#10

When Executed by Another Workflow

Execute Workflow Trigger

#11

Check if user has provided email

If

#12

Message Slack for help

Slack

#13

Confirm that we've messaged a human

Code

#14

Prompt the user to provide an email

Code

#15

Not sure?

Tool Workflow

#16

AI Agent

Agent

#17