Chatbot Integrating Multi-Channel Interaction and ...
# 🤝help
h
Greetings, I'm looking for assistance in adding advanced functionality to Botpress. Specifically, I need help implementing user identification features for multiple channels like Teams, WhatsApp. My goal is to differentiate user interactions across channels, capture conversation transcripts, and effectively identify users. My Idea is to have something similar to the 'Conversations' section that has Botpress for each chatbot, but I also want to identify the number or user that wrote the chatbot and save the transcription from every interaction with my chatbot. Any insights, advice, or guidance would be greatly appreciated! https://cdn.discordapp.com/attachments/1230986160902373448/1230986161129001060/imagen.png?ex=66355033&is=6622db33&hm=c4896f8bddc38b46654837bb202973d715ba10eb6cacd11ce7fb1ca497583a85&
s
Hi, Create a session node where you will capture all information that you need like: - chat triggered at - channel: Make all of those variables as Scope: User. Create a table to capture transcripts (screenshot). Record when the chat was triggered and if you have some way to identify user, put that information into table as well. In the end workflow save the transcript but make sure it's not longer than 4kb, for example, inside the Execude Code Card: workflow.transcriptLimited = conversation.SummaryAgent.transcript; if(workflow.transcriptLimited.length > 3000) { //var transcript = conversation.SummaryAgent.transcript; workflow.transcriptLimited = workflow.transcriptLimited.substring(Math.max(0, workflow.transcriptLimited.length - 3000)); } https://cdn.discordapp.com/attachments/1230986160902373448/1231037863047729233/image.png?ex=6635805a&is=66230b5a&hm=3392d51583352bd43417397e8ebd4860429e662c1923e1e844d28d075190d666&
You can modify and extend with any information you want to capture. The best is to identify starting point end the end point of each user - bot session. If you can't identify the user by his name, or phone number you can create a unique ID and store it in the table when the bot is triggered and in the end workflow. This will help you to see how users interact with the bot.
h
Thank you so much for your explanation zubiwat! I will start developing this idea, if I have any doubt I will respond to this chat in order to have feedback of my progress. And thanks again!