Vetle Nilsen
Vetle Nilsen2w ago

AI Agent Returning Broken Shopify Links

Hey everyone 👋 I’m running into an issue with my AI agent in Voiceflow. Whenever the assistant tries to provide a product link from my Shopify store, it sometimes generates URLs that don’t actually exist. Instead of linking to the real product page, it makes up a link that leads to a 404 error. Has anyone experienced this before? A few questions I’m hoping to get advice on: Is there a way to restrict the agent so it only uses valid Shopify product links? Should I be feeding the store URLs directly into the knowledge base, or is there a better way to handle dynamic product linking? Could this be a retrieval / hallucination issue, and if so, what’s the best fix? Any guidance or examples from people who have integrated Shopify with Voiceflow would be super helpful 🙏 Thanks in advance!
6 Replies
Vetle Nilsen
Vetle NilsenOP2w ago
This will not solve the issue. I am only using agents in Voiceflow, and when a retrieval pulls a chunk from a URL, I want that URL to be used as the source.
KenethM1
KenethM12w ago
My only advice will be to not rely on the LLM to generate sections of the url. I use cloud functions or js logic to create Carousels with the data user is requesting.
Vetle Nilsen
Vetle NilsenOP2w ago
I see. I found a solution by providing all the links to the AI agent in the prompt. Since the prompt wasn’t very large, I didn’t notice any impact on speed or quality.
KenethM1
KenethM12w ago
Could end in a scalation problem, might need to find a better way.
Vetle Nilsen
Vetle NilsenOP2w ago
yeah, i am trying to get the agente to give the url that made the chunk

Did you find this page helpful?