The intended flow is as follows:
- A message is received from a chat (this can originate from any chat platform).
- The message is processed by an AI Agent node using the following tools:
- OpenAI
- Window buffer memory
- HTTP POST request to Stripe
- 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