How to let a chatbot use response data in a different http request?

Describe the problem/error/question

Hi,
I’m learning n8n and wanted to make a test chatbot that is specialized in movie and series knowledge by connecting it to the tmdb API.
My goal is to let a chatbot take the data from the one http request to fill it into another http request to be able to answering the question.

Prompt example: “Tell me a popular sci-fi movie”.
The http requests that are needed for that are:

  1. Fetch the popular movies list
  2. Fetch movie title specific data by passing the popular movies through the “movies list” http request, which contains data like the genre IDs.
  3. Take the genre IDs and request the genre name in the genres http request

But right now, I can only let my chatbot use one http request, but not let him combine them dynamically.

Thanks for the help!

What is the error message (if any)?

No error message.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite): postgressql, I guess
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Heroku deployment, but I think its backed by docker.
  • Operating system:

You must tell your AI Agent how to use the Http Requests.
The first HTTP Request tool got a description. All other HTTP Request tools have the default Makes an HTTP request and returns the response data description.
If you tell your Agent to make an http request it will choose one make a request.
Further the http requests are also missing the parameters.

1 Like

Thanks for your answer. Your tip to work more intense with the descriptions seems working. I probably have to tweak them a bit more to work more efficient, but I get better and more connected results now.

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