AI Agents

Build a Multi-Platform AI Agent with Memory and Tools

46 nodes 310 140 Automatic trigger
Download

Workflow Description

Advanced automation integrating an OpenAI-powered intelligent agent with Redis-based memory storage and multi-channel activation via Twitter, Telegram, and MCP interfaces. Enables sophisticated query processing and distributed task execution with contextual awareness.

How it works

  1. 1.Activate agent via Telegram, X, or MCP while storing conversation context in Redis
  2. 2.Process queries through OpenAI model with access to external tools and APIs
  3. 3.Route responses and execute sequential tasks based on request type and agent decisions

Use cases

  • Manage unified social inquiries while maintaining historical context across channels
  • Build a multi-channel smart assistant that learns from previous interactions and refines responses

Requirements

  • Active OpenAI account with API access configured
  • Running Redis server for persistent memory and session storage

Service Value

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

Apps Used

Twitter/X N8N Redis AI Agent Chat Trigger Tool Memory Mcp Trigger OpenAI

Details

Trigger Automatic trigger
Nodes 46
Apps 9
Views 310
Downloads 140

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

/

Simplify Workflows

Set

#1

When Executed by Another Workflow

Execute Workflow Trigger

#2

Operations

Switch

#3

Get MCP-tagged Workflows

N8N

#4

Filter Matching Ids

Filter

#5

Store In Memory

Redis

#6

AddTool Success

Set

#7

AddTool Error

Set

#8

Get Memory

Redis

#9

Split Out

Split Out

#10

Filter Matching IDs

Filter

#11

Store In Memory1

Redis

#12

Remove Tool Success

Set

#13

Convert to JSON

Set

#14

listTools Success

Set

#15

Get MCP-tagged Workflows1

N8N

#16

Simplify Workflows1

Set

#17

listTools Success1

Aggregate

#18

Get Parameters

Set

#19

executeTool Result

Aggregate

#20

AI Agent

Agent

#21

When chat message received

Chat Trigger

#22

MCP Client

Mcp Client Tool

#23

Simple Memory

Memory Buffer Window

#24

Convert to JSON1

Set

#25

Has Workflow Available?

If

#26

ExecuteTool Error

Set

#27

Workflow Exists?

If

#28

N8N Workflows MCP Server

Mcp Trigger

#29

Add Workflow

Tool Workflow

#30

RemoveWorkflow

Tool Workflow

#31

List Workflows

Tool Workflow

#32

SearchWorkflows

Tool Workflow

#33

ExecuteWorkflow

Tool Workflow

#34

Sticky Note

Sticky Note

#35

Execute Workflow with PassThrough Variables

Execute Workflow

#36

Sticky Note1

Sticky Note

#37

Sticky Note2

Sticky Note

#38

OpenAI Chat Model

OpenAI

#39

Is Empty Array?

If

#40

Delete Key

Redis

#41

Sticky Note3

Sticky Note

#42

Sticky Note4

Sticky Note

#43

Sticky Note5

Sticky Note

#44

Sticky Note6

Sticky Note

#45

Sticky Note7

Sticky Note

#46