xplorai
xplorai4w ago

ive already connect my spreadsheet via mcp way and my agent cant provide photos of the product why?

in my spreadsheet i have the image link
2 Replies
Tico | Voiceflow Assistant
Here’s why your agent isn’t showing the product pictures yet and how to fix it: Why the image link isn’t enough Voiceflow will only render an image when the reply it gets back contains a visual-type trace (Image step) or a card / carousel trace that includes an imageUrl. If the agent only sends plain text (which is what you get when you let the LLM answer directly from your spreadsheet data), Web Chat has nothing to turn into a picture, so the image never appears. What to do 1. Make sure the URL stored in your sheet is a direct, publicly-accessible image link (e.g. https://…/photo.jpg). Google-Drive “view” links won’t load. 2. After you read the row from the sheet, pass that URL into a Card, Carousel or Image step instead of a plain Text / AI Response step. • Card/Carousel: put the URL in the Image URL field (you can insert it as a variable like {image_url}). • Code / Function step: return a trace manually, e.g.
export default async function main(args) {
const { image_url, title, description } = args.inputVars; // values from the sheet
return {
trace: [{
type: 'cardV2',
payload: {
imageUrl: image_url,
title,
description: { text: description }
}
}]
};
}
export default async function main(args) {
const { image_url, title, description } = args.inputVars; // values from the sheet
return {
trace: [{
type: 'cardV2',
payload: {
imageUrl: image_url,
title,
description: { text: description }
}
}]
};
}
Web Chat will automatically render the picture. 3. Test in the Preview tool; you should now see the photo. If it still doesn’t load, open the image link in a normal browser tab to confirm it isn’t blocked or private. Docs for reference: • Card & Carousel step – how to attach an imageUrl: https://docs.voiceflow.com • Trace types – visual, cardV2, carousel: https://docs.voiceflow.com Once the reply includes one of those trace types with a valid imageUrl, your product photos will appear in the chat widget.
xplorai
xploraiOP4w ago
and if i want dynamic reveal of my photos and not only 3 or 5.if i had 2000 products and want to recommend 10 of 2000 products what nedd to do?

Did you find this page helpful?