AI Agent node not able to invoke a custom LangChain Code tool

console.log(‘Custom Gmail Node runs’);
// const { StructuredTool } = require(‘@langchain/core/tools’);
const {
GmailCreateDraft,
GmailGetMessage,
GmailGetThread,
GmailSearch,
GmailSendMessage,
} = require(‘@langchain/community/tools/gmail’);

return new GmailSearch(gmailParams);

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @rogaha,

Welcome to the community :tada:

Can you share some more information? At the moment I am not sure what is going on as you have not completed the template we provide.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.