statutory-emerald•17mo ago
Backend authorization per chat message
I need to make a backend request every time the user sends a chat message. I'm authorizing backend requests with a jwt token from my UI (NextJS). Is there a way to send the jwt token along with each chat request, so that Voiceflow can pass it along to my backend server? Otherwise, is there a proper way to securely provide headers to the Voiceflow chat on load?
2 Replies
sure, you can pass any var into the chat:
Voiceflow
Adding Custom Variables
Send custom variables on web chat load like userID, email, and more.