Smart AI assistant executing custom n8n tools from conversational input
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.Receive user message through manual chat trigger and establish conversation context
- 2.Send input to OpenAI Assistant for analysis and tool selection based on the query
- 3.Execute the selected custom tool (n8n code blocks, workflows, or integrations) and retrieve results
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (14)
On new manual Chat Message
Manual Chat Trigger
OpenAI Assistant
OpenAI
Execute Workflow Trigger
Execute Workflow Trigger
Mapping data
Code
List countries?
If
Mapping data1
Code
Sticky Note
Sticky Note
Return country list
Set
Return specific capital
Set
Tool to call the workflow below
Tool Workflow
Concatenate country names
Summarize
Get the matching country's details
Merge
Sticky Note1
Sticky Note
Tool: Get current date and time
Tool Code