Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home

What Happens if More than One Message is Sent to the Bot?

Written by Soham Amburle

Updated on July 26th, 2022

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • Developer Guides
    Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
  • Deployment
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Table of Contents

SCENARIO 1 (Message-1 is processed by the pipeline before Message-2 was picked): SCENARIO 2 (Message-1 and Message-2 are processed at the same time) SCENARIO 3 (Message-1's message was processed a bit later than Message-2)

When a user is having a conversation with the bot, the usual flow is where the user sends a message to the bot, and the bot responds to that message with a pre-fed response. Well, this is one basic scenario. But, at times it might happen that a user might send two different messages at the same time, with two different intents. In this case, how will the bot respond? Which message will be considered first and which one later? Let us understand this through this document.

It is quite difficult to predict what would happen because of the multi-threaded nature in which the pipeline works on Haptik.

So, every user message that is sent, is added to a queue where multiple (software) workers pick it up for processing. Here, as we discussed in the above paragraph it might happen that 2 user messages that arrived were picked by two workers at the same time and processed parallelly.

Now, the difference in how the pipeline responds is completely dependent on when a user's message is picked by our pipeline's worker for processing.

Let's look at a few examples to understand how this might work.

SCENARIO 1 (Message-1 is processed by the pipeline before Message-2 was picked):

In this scenario, when Message-1 and Message-2 are sent by the user, the bot calculated Message-1's response first and sent it to the user, even before Message-2's response was calculated.

So ideally, Message-1's response will be sent first and Message-2's response will be sent later.

SCENARIO 2 (Message-1 and Message-2 are processed at the same time)

In this scenario when the user sends Message-1 and Message-2, the response for the user's Message-1 gets processed first, but then before it is sent out, Message-2 gets processed. 

So, in such cases, the Message-1's response will be discarded and Message-2's response will be sent back

SCENARIO 3 (Message-1's message was processed a bit later than Message-2)

In this scenario, when Message-1 and Message-2 are sent by the user, the response for Message-2 gets processed before Message-1 (a rare scenario due to multithreading).

In such cases, Message-1's response will be discarded and only Message-2's response will be sent back to the user.

Delete

In cases where Message-1 was replied to but Message-2 was ignored, is a similar race condition to that of Scenario 3 mentioned above. This is where perhaps Message-1 was deemed as the most recent one by the bot, which is why Message-2's response was canceled. Again, this is a rare condition.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How to Set Up SETU Integration
  • How to edit user messages?
  • What is Salesforce Integration? How to set up Haptik and Salesforce Integration?
  • Getting "Be right back!" error
  • How to Set Ignore-Storage Property on Haptik bots

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0