Push notification(auto generated Weather API notification)

Hi i want send auto weather api notification to bot without asking quetion how i can do this?

Hi @sunilskn! I actually just answered a similar question to this: How to allow Rasa bot to control the conversation

okay thanks,i will check it

hi@tyd i need to show any push notification in my chatbot. Can you show me with example code?

@sunilskn Why don’t you just send push notifications to the channel you are using?

i willl tell one use case: suppose i have one inventory chatbot in this if anything got changed like updated stock,some records addedd and some updates about chatbot in such cases my chatbot send notification to user

@sunilskn I think you will just want to send those notifications from your backend to the channel you are using. If the user sends a message to you, then you would use Rasa to receive and respond to it

can you share example code ? i dont have idea how to do it

@sunilskn What channel are you using?

i am not using any channel.

By channel, I meant “connector”. It looks like you are using Slack.

You can find info about how to send notifications into Slack here.

You also probably do not want to expose your slack_token to the world by posting it on the forum.

okay thank you

i will tell another use case: i have one products chatbot in this if offers or dicount available then chat bot automatical shoul show result of these without asking user about offers or discount. ex: when i start the bot should give the notification like Bot: 20% offers available on shoes