Get Data from HTTP Request SUB-NODE

The intended flow is as follows:

  1. A message is received from a chat (this can originate from any chat platform).
  2. The message is processed by an AI Agent node using the following tools:
  • OpenAI
  • Window buffer memory
  • HTTP POST request to Stripe
  1. The OpenAI component generates a response, and based on this response, a payment link is created using Stripe.

Currently, the entire flow functions as expected except for one issue:
n8n does not allow me to retrieve the output data from a sub-node (specifically the HTTP POST request sub-node in this case).

This is problematic because I need the output data from the sub-node after the POST request is made, as it contains the payment link ID, which is essential for completing the flow.

I attempted to resolve this by using the LangChain Code node, but unfortunately, I was unsuccessful.

Could you provide guidance or suggest a solution to retrieve the output data from the sub-node?

Please share your workflow

Information on your n8n setup

  • n8n version: Self-hosted 1.69.2
  • Database (default: SQLite): Postgres? Default setup
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker): Docker
  • Operating system: MacOS 12.7.5

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 @antoinesco

Thanks for posting here and welcome to the community! :cupcake:

I think the best approach would be to implement another tool node that stores the payment ID in an external database and instruct the agent to store the ID first before responding to the user with the link.

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