fair-rose•3mo ago
How to make the chat bot put a pdf in the chat
Is it even possible to make the bot put a pdf in the chat, like i want the chatbot to give an ABR (bank details, bank account detail).
1 Reply
Short answer → Voiceflow’s built-in chat widget can’t attach a PDF, but it can point the user to one. The usual pattern is:
1. Host the PDF somewhere public (S3, Google Drive “anyone with link”, your own site, etc.). Copy the direct URL to the file.
2. In Voiceflow add any step that lets you show a button or a link, e.g.
• Card Step → add a URL Button → action type open_url → paste the PDF link.
• Button Step / Choice trace → same idea, set the button’s request to
open_url
with the PDF link.
• Or just drop the link in a Text Step so the user can click it.
3. When the user clicks, the PDF opens in a new tab or downloads, satisfying the “send ABR details” use-case.
If you own the front-end and want a nicer inline preview or true file transfer you can:
• Emit a custom trace with whatever payload you like and handle it in your React/JS client (custom widget guide).
• Or intercept the link/button click and run extra logic (log the download, fetch the file, etc.).
There isn’t (today) a native “file attachment” trace, so the link/button approach is the simplest solution across all chat deployments.
Docs for reference: Trace types (see URLButton
with open_url
) https://developer.voiceflow.com/v2.0/reference/trace-types