https://discord.gg/botpress logo
#🤝help
Is it possible to differentiate if the conversation is coming from telegram or webchat in the studio
# 🤝help
m

modern-honey-58818

01/08/2024, 3:55 PM
I want to know if I can differentiate if the conversation is coming from telegram or from webchat and store that information in tables for data anaylisis.
f

fresh-fireman-491

01/08/2024, 5:03 PM
I am pretty sure that you can do this although I haven't tried with telegram. This shows you the integration that the bot is being used on: event.integration
Don't mind this, forgot you wanted it stored in a table 🙂 There are some different options from here like using an expression card. event.integration === "webchat" event.integration === "telegram" (I am not sure about the integration name here)
To store it in a table you could use it in an execute code card instead
await IntegrationTable.createRecord({ integrationName: event.integration})