Description
AI & LangChain node in n8n.
What It Does
Agent-callable custom code (JS/Python).
When To Use It
Computation the LLM cannot do reliably: math, string ops, data transforms.
Key Parameters
Language, Input Schema (JSON), Description
Common Mistakes
Must return a STRING – returning an object breaks the agent with “wrong output type”.
Example
Agent + Code Tool (calculate discount) -> pricing assistant.
FAQ
Is this node included in n8n Community Edition?
Yes – Code Tool ships with the free Community Edition. No paid license needed.
Define the input schema so the agent knows what arguments to pass.?
Where does it fit in a workflow?
Code Tool works with any other node – connect it after a trigger or data node, and feed its output into the next step. Standard n8n data flow: trigger -> transform -> act.
Is support included?
Yes – message the seller through the store and I will help you wire this node.
Discover more from Wiredwizard
Subscribe to get the latest posts sent to your email.





Reviews
There are no reviews yet.