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
  • Bot Building
  • Testing

How to use bot QA tool?

Written by Medha Anand

Updated on October 12th, 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

Table of Contents Introduction Challenges while testing a bot How to use Haptik's Bot QA Tool GENERATE API RUN API

Table of Contents

Challenges while testing a botHow to use Haptik's Bot QA ToolGENERATE APIRUN API

Introduction

At Haptik we design, develop and test bots every day. These bots are spread over multiple domains like e-commerce, insurance, gaming, etc. Some of these bots are text-based, some voice-based and some support a mix of both.

Our objective is not just to make bots live in production, but also to make them robust and fail-proof, i.e. to deliver bots with minimal, or zero, errors in production. It is a huge responsibility to ship these bots with minimal errors and maintain quality.

The users can come and say anything they feel like on the bot. While testing you need to figure out if the bot should have been able to reply to the users’ query and if yes, then was it the right reply.

A few things that go into this are:

  • Testing of end-end user flows for the user queries without failing
  • Validating the business logic the bot executed
  • General Responses (Greeting, positive feedbacks, negative feedbacks etc.)
  • Testing functionality of individual Tasks
  • Checking of UI of chat elements, images, grammar, personality, etc.

Challenges while testing a bot

There are multiple challenges we face while testing a bot.

  • Wide Scope of testing
    • Unlike other types of testing, bot testing depends on multiple factors - domain for which the chatbot is built, target users, target age group, type of conversation that a chatbot is supposed to have with the user (casual or professional). Keeping all these factors in mind, there is a large number of permutations and combinations to think off. Running test cases for each of these scenarios is again a tricky and tedious task.
    • While testing the bots you should also focus on replies given by the bot for free form queries.
    • The response that was given by the bot when it does not understand the user queries.
  • Time consuming and requirement of increased manpower

Every time you change existing intents in the bot or add new intents in the bot, you would need to test the entire bot again as new or updated intents might affect the existing intents.

To overcome these day-to-day challenges and deploy a high-quality bot in the shortest possible time, we have come up with an automatic way of testing - Bot QA Tool.

The beauty of this tool is that it is independent of the copy of the messages.

How to use Haptik's Bot QA Tool

Haptik's Bot QA Tool makes regression testing of a bot scalable and thus saves time. It mainly depends on the step's traversal and not the copy of messages.

It is accessible through APIs. There are two main APIs under this tool 

  • Generate API
  • Run API

For triggering these APIs, you need the following values:

  • Mock conversation on the bot with all testing scenarios. You can read more about conversations here.
  • Collection ID - You can get the Collection ID from the chat link as shown in the image below. Chat links are available on Intelligent Analytics's Message Analysis page.
  • Account ID - You can get the Account ID from the bot credentials pop. You can open the bot credentials pop using the share icon on the bot screen as shown below.Once the popup opens, you can find the Account ID here as shown below.
  • Business_via_name - You can get the business_via_name from the Business Manager page of your bot as shown below.

GENERATE API

GENERATE API helps us to create a CSV of test cases. We need to send the collection id, conversation ids, email id, business-via-name in the request and the API will return the Bot QA Testcases CSV over email with all test cases.

API URL - https://staging.hellohaptik.com/bot_qa/business-via-name/generate

Headers -

  • Authorization: Bearer
  • client-id: <ACCOUNT_ID>
  • Content-Type: application/json

Body for GENERATE API

{"collection_id": , "conversation_id": [1], "email_id": "<email-id>"}

For multiple conversations

{"collection_id": , "conversation_id": [1,2], "email_id": "<email-id>"}

The email-id is of the person who would receive the CSV over email. The CSV would be named in the format of business-via-name_collid_timestamp.csv.

RUN API

RUN API helps us to execute test cases under Bot QA Testcases CSV and provides a result CSV. For running this API, we would send the file, businessvianame, email-id and the API will return the Bot QA Result CSV with the success/failure for all test cases over email.

API URL - https://staging.hellohaptik.com/bot_qa/business-via-name/run

Headers -

  • Authorization: Bearer
  • client-id: <ACCOUNT_ID>

Body for RUN API

{"email": "<email-id>", "file": ""}

The email-id is of the person who would receive the Bot QA Result CSV over email. Filename is the name of the Bot QA Testcases CSV file.

If the API gets executed successfully, you get the below email -

If the API does not execute successfully, you get the below email -

Using both these APIs, we will be able to run our regression test suites and get the desired results every time we make a bot live. We can keep making modifications in the bot to remove the failure cases.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • What is bot functional testing?
  • How to test the bot?
  • How to make use of Training Suggestions?
  • How to use the debug logs?

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