How to Pass data to the AI Agent that is fetched at different time

I am fetching data from separate node (App Installation Time) but unable to get this data to the other node (AI Agent)

I am fetching data from shopify by using GraphQL, And i want to pass this data to the AI Agent for processing, I have Fetched the data from shopify but unable to pass it to the AI Agent, How I pass this data to The Agent

I am new to this, confused how I handle this data?

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.88.0
  • Database (default: SQLite): Not sure about this
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: windows

Hi,

What are you trying to achieve exactly? the workflow you are building retrieves information from shopify and stores product information embeddings in a vector store. after that ollama, is used to answer questions about those products through a chat interface?

Are you trying to achieve additional funcationality or is the RAG not working as it should?

reg,
j.

I am trying to build a chatbot that can answer customer queries related to shopify store products.
To generate response from the ollama chat model regarding shopify store products, I have to share this data to the chat model.
I have fetched the data, and try to find a way to share this data with AI chat model.

Does this can be done through vector store or anything else…

Looking for your response…

Thank You

Hi,

yes a vector store could be used for this. It servers as an external storage which is referenced by both the webhook as well as the chat part. There are sample templates for this , but they are mainly based on openai.

I haven’t tried simple vector store though. qdrant works fine.

It’s best to look at some of the example rags and try them out.

reg,
j.

Hey,
I appreciate your help…

I am facing this issue when i run the workflow.
I am using JSON data at the time of storing it in vector store and getting the error when executing the workflow in first iteration. Does the JSON is correct for storing in vector store?
Can you check the screenshots and help me to find out the issue,


Hi,

From what I remember you to match the correct data loader with the type of data provided.

It’s best to search the templates for similar examples to get an understanding.

Also there are many resources and videos online explaining this already

Reg,
J.

1 Like