Need a way to map Product Id from Chat to call an API passing this Product ID

I am building an Agent that search the Product in the Product Master of SAP system by passing the Product ID. How di I retrieve the Product Id from the chat?

Describe the problem/error/question

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):
  • Operating system:

maybe use the ai to extract it from the chat first

Could you please help me more here? how do I extract from the chat and how do I pass it on the HTTP call? anyway I can share my project and you can help?

There is an AI node called Information Extractor,
You provide it with text and specify the attributes you want to extract from that text, such as Product ID

You can share your workflow here or provide screenshots of your workflow logic..

Thanks @Harsh_AI for the details, It’s a simple workflow, so we can ignore the information extractor and rely on the agent to extract the product ID by adding the HTTP tool and using {{ $fromAI('ProductID', ``, 'string') }}

Here’s an example you can make like this or use as a reference:

1 Like

thanks for the tip.

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