AI Agents

Smart AI assistant executing custom n8n tools from conversational input

14 nodes 304 154 Automatic trigger
Download

Workflow Description

Build an OpenAI-powered agent that receives manual chat messages and processes them using custom n8n tools. The assistant analyzes requests, selects appropriate tools, executes custom workflows or code, and returns intelligent responses with optional Twitter/X integration.

How it works

  1. 1.Receive user message through manual chat trigger and establish conversation context
  2. 2.Send input to OpenAI Assistant for analysis and tool selection based on the query
  3. 3.Execute the selected custom tool (n8n code blocks, workflows, or integrations) and retrieve results
  4. 4.Process and return the response to the user or post directly to Twitter/X

Use cases

  • Deploy an intelligent chatbot that understands user intent and executes appropriate actions
  • Automate Twitter/X content creation and engagement based on conversational commands
  • Build a multi-purpose AI agent combining natural language understanding with custom business logic

Requirements

  • Valid OpenAI API key with Assistant capabilities enabled
  • Twitter/X API credentials (optional) for social media integration and posting

Service Value

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

Apps Used

Manual Chat Trigger OpenAI Twitter/X Tool Code

Details

Trigger Automatic trigger
Nodes 14
Apps 5
Views 304
Downloads 154

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

/

On new manual Chat Message

Manual Chat Trigger

#1

OpenAI Assistant

OpenAI

#2

Execute Workflow Trigger

Execute Workflow Trigger

#3

Mapping data

Code

#4

List countries?

If

#5

Mapping data1

Code

#6

Sticky Note

Sticky Note

#7

Return country list

Set

#8

Return specific capital

Set

#9

Tool to call the workflow below

Tool Workflow

#10

Concatenate country names

Summarize

#11

Get the matching country's details

Merge

#12

Sticky Note1

Sticky Note

#13

Tool: Get current date and time

Tool Code

#14