Carl
Carl2w ago

NOTIFICATIONS INSIDE THE CHATBOT

QUESTION ALERT GUYS: is it possible to make the ai chatbot send notifications inside the chatbot itself if a customer registered in the chatbot
1 Reply
Tico | Voiceflow Assistant
Yes – the Web Chat widget lets you push “notification” bubbles to the user at any moment, even if they haven’t opened the chat yet.
1. Load the widget as usual:
window.voiceflow.chat.load({
verify: { projectID: '<PROJECT_ID>' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
}).then(() => {
// fire your notification after the customer registers
window.voiceflow.chat.proactive.clear(); // (optional) remove older bubbles
window.voiceflow.chat.proactive.push({ // show a new one
type: 'text',
payload: { message: '🎉 Thanks for registering! Tap here to get started.' }
});
});
window.voiceflow.chat.load({
verify: { projectID: '<PROJECT_ID>' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
}).then(() => {
// fire your notification after the customer registers
window.voiceflow.chat.proactive.clear(); // (optional) remove older bubbles
window.voiceflow.chat.proactive.push({ // show a new one
type: 'text',
payload: { message: '🎉 Thanks for registering! Tap here to get started.' }
});
});
2. Trigger it from any event you like (e-commerce sign-up, purchase, page visit, etc.). You can run the code client-side right after the user finishes your sign-up form, or call it from your own script/server through a small snippet injected on the page.
3. The message appears as a little bubble on the chat icon; once the user clicks the widget it disappears from the transcript (proactive messages don’t consume credits or clutter the chat history).
4. If you want the agent to send a normal in-chat message after the user opens the widget, simply route your Voiceflow flow accordingly (e.g. set a variable like user_registered = true and start from a Greeting message that checks this variable).
Docs: https://docs.voiceflow.com (see “Proactive messages” under Web Chat).

Did you find this page helpful?