I'm developing a chatbot with Venom Bot, and I wanted to know how I can make it stop sending messages when the customer requests assistance with a real person. Would it be possible, for example, to leave it without sending messages within 40 minutes?
Related
I need to push a message to the end-user after some time of the beginning of the conversation. For example, the end-user starts talking today and subscribes to some kind of event. I would like to send messages from my backend to that conversation after some time without user input between this time.
I am developing an MS Teams app with a bot. Occasionally, the bot needs to send a proactive message to a subset of users who have installed the app.
We cannot send a message to multiple users at once. So we have to make one HTTP request per user per message. Given that batching is not possible and there are API rate limits, I want to know how scalable is this.
Specifically, I want to know the approximate time between when the first and the last user receive the messages if I send message to 5k users at once. What about 10k? 20k?
Any help is much appreciated, thanks :)
This document gives a lot of detail on the throttle limits, and the related time periods required: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/rate-limit
I am creating a customer support bot using Ms botframework v4 with nodeJS and directline API 3.0. A customer would talk to the bot and on request, the conversation would be handed over to an agent. If the customer requested to talk to a bot, the customer will wait until the agent becomes available. I want to check if the customer is still active before the agent sends a message to him/her.
wireframe of the bot and the webiste As you can see in the image Jack is in the queue I want to find out a way to check if Jack is still waiting, or he close the window and no longer waiting.
Check out this SO solution I provided. The request is similar to yours in that the OP wants to know how the bot can be notified if a user exits.
The short answer is to use an event listener. Before the window (that houses the web chat instance) is closed, an event is fired. This event is picked up by web chat which sends an activity (message, event, or other) to notify that bot.
From this point, you simply need to forward the notification to the agent that the user has exited the conversation.
Hope of help!
I have a discord bot that uses Discord.js. It can send messages instantly using code like
message.channel.send('hi')
This works just fine for sending normal messages but I would like to make it seem like it's taking a while to type (Not dissimilar to how the bot Chatty Cathy sends human-like messages).
Check it out here
How would I go about making a bot that also sends human time like messages?
You can use channel.startTyping() and channel.stopTyping() to simulate time being taken for a message to send https://discord.js.org/#/docs/main/stable/class/TextChannel?scrollTo=startTyping. Something like:
channel.startTyping();
setTimeout(()=>{
channel.send(string).then((message)=>{
channel.stopTyping();
});
}, 5000)
I have created a bot for slack and deployed to Azure, I am making some API calls to another server from this BOT, for this bot I have a client requirement, My client wants to measure the time taken by request to reach to server and time taken by response to come back to Bot. (only time taken by request/response to reach to either side . I have been exploring Azure application insight from three days , but could not find any helpful service. I can not change my bot code , Is there any way in azure service by that I can monitor latency?
Here is simple diagram:-
Bot ----t1----> Server
<---t2-----
I don't want response time taken to process at Server side (No calculation time ) Just request/response travelling time.
Ganesh,
What you seem to be asking is how long it takes the API to process a request and return a response. Nothing to do with your bot.
My suggestion would be to create performance tests against the API directly using a tool such as Jmeter. This will give you average response times for say 10,000 requests and plot out on nice graphs etc.
If you need a help doing this, I could write it up for you in step by step instructions.
Let me know.
Thanks,
Tim