LivePersonInc / node-agent-sdk

LivePerson Agent Messaging SDK for NodeJS
MIT License
49 stars 79 forks source link

agent-bot example will spam all conversations on account as fast as it possible can #109

Open lp-tattwell opened 4 years ago

lp-tattwell commented 4 years ago

This is a bad one. I started up the default echo bot with no edits on my test account and fired about 3200 messages in less than a second.

1) Start the bot up on an account 2) Start a conversation. The echo bot works perfectly 3) Start a second conversation 4) The echo bot thinks the userId has changed (because it only stores 1 at a time) and sends a message saying "Consumer stepped up in conversation with..." to the second conversation. Echo bot stores the 2nd customer ID. 5) The bot then gets in to an infinite loop between sending messages to both conversations, updating the consumerId making it send more step up messages etc etc 6) repeat steps 4-5