AI Agent: capturing, saving and passing on values onto the next node

Describe the problem/error/question

I’m new to n8n and I’m trying to build an AI chatbot. I’m currently testing with Telegram but my question is not specific to a messaging platform (I think). I am using an AI Agent to have a conversational AI-based chat with the user and I want to extract values from the user’s replies (example: what’s your budget?). I want to then pass on those values to the next nodes and use them. I think this is a pretty standard scenario but I don’t know how to do it.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

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): n8n cloud
  • Operating system: macOS
1 Like

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:

Hi @Pedro_Dias,

Welcome to the community :tada:

If you’re new to n8n, searching for similar workflow templates in the templates library might be a good place to start! You can copy them into your instance and customize them as well.

Here are some examples:

I;m looking for this solution too. I need the agent to send a specific value to a specific node connected to it

Solved: n8n actually solves this with $fromAI (so good) and when using tools also passes on the necessary info through the “query” argument. n8n <3

2 Likes

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