Bot installed event not triggered

Description
Ive created 2 different chat bot apps. ( still under development )

Error
on first app, Ive managed to get the “bot_installed” event, thus i get all the necessary fields/values for sending IMs.

on second app, i got lucky in getting the “bot_installed” event.

… days later

I try to uninstall the first app, and try to reinstall, at this time i never get the event already.

Which App Type (OAuth / Chatbot / JWT / Webhook)?

Chatbot

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Tried to reinstall the app.
  2. I never get the bot_installed event, ever again.

Bot Installed Event Payload

{
"event": "bot_installed",
"payload": {
"accountId": "<account_id_here>",
"robotJid": "<robot_jid_here>",
"timestamp": 1585498436592,
"userId": "<user_id_here>",
"userJid": "<user_jid_here>",
"userName": "<my_username_here>"
}
}

Additional context

  • I never submit my apps yet to prod.
  • I let somebody installed the app, and redo all the steps provided here but seems to no avail.

Questions

  • What could be the reasons of this intermittent behaviour?

Hey @rodghost,

The webhook delay is a known issue due to heavy load on our platform.

We are currently working on the issue.

In the meantime, make sure you are sending a 200 OK response back once you receive the install notification.

As a workaround, you could also choose the default welcome message.

Thanks,
Tommy

Thanks @tommy,

Im getting welcome message everytime i install or reinstall the app.

Rod,

1 Like

Glad to hear it is working!

Thanks,
Tommy