cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
275
Views
1
Helpful
1
Replies

Webhooks membership event before starting conversation

dupontb
Level 1
Level 1

Hello,

I'm developing a bot using webhooks.

I need to send a "hello" message when the user creates a conversation with the bot: 

- Send a direct message
- Find the bot in the search bar
- It creates a 1:1 conversation between the bot and the user.

My issue is that I don't have any membership event at this point. The membership events arrive when the user sends its first message in the conversation.

Am I missing something here? How can my bot say hello before the user has to send any message? 

 

Thanks

1 Reply 1

dtibbe
VIP
VIP

If you got the name and start typing the message, the Webex app just creates a temporary space at your system. It is not known to the platform. You can verify by opening such a space and leave, not typing a message and select another one again: that new space will disappear.

So unless you send a first message, the space is not created and therefore the event not sent. So your bot cannot react unless you send a first message to it