AI: Conversational agent with custom tool written in JavaScript
Go to WorkflowDescription
This workflow implements a custom tool via JavaScript code which returns a random color to users and excludes the given colors.
Note that to use this template, you need to be on n8n version 1.19.4 or later.
Nodes Used (3)
AI Agent
@n8n/n8n-nodes-langchain.agent
Code Tool
@n8n/n8n-nodes-langchain.toolCode
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi