Chatbot Overview
Conversational Bots
Intents & Entities
Intelligent Bots's Approach Conversational Platform
Bot Concepts and Terminology
Natural Language Processing (NLP)
Bot Types
Bot Tasks
Starting with Platform
How to Access Bot Builder
Working with Bot Builder
Building your first Bot
Getting Started with Building Bots
Using the Dialog Builder Tool
Creating a Simple Bot
Release Notes
Latest Updates
Older Releases
Bot Builder
Creating a Bot
Dialog Task
Working with User Intent & Dialog Node
Working with Entity Node
Supported Entity Types
Working with Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Working with Message & Confirmation Nodes
Working with Service Node
Implementing Custom Authentication
Enabling 2-way SSL for Service nodes
Working with Script Node
Working with Agent Transfer Node
Working with WebHook Node
Defining Connections & Transitions
Managing Dialogs
Prompt Editor
Context Object
Session and Context Variables
Action & Information Task
Working with Action Tasks
Working with Information Tasks
Establishing Flows
Alert Tasks
Working with Alert Tasks
Managing Ignore Words and Field Memory
Knowledge Tasks
Building Knowledge Graph
Importing and Exporting Bot Ontology
Knowledge Extraction
Natural Language
Machine Learning
ML Model
Fundamental Meaning
Knowledge Graph Training
Ranking and Resolver
NLP Detection
NLP Settings and Guidelines
Bot Intelligence
Dialog Management
Context Management
Amend Entity
Multi-Intent Detection
Default Conversations
Channel Enablement
Test & Debug
Talking to Bot
Utterance Testing
Batch Testing
Recording Conversations
Publishing your Bot
Analyzing your Bot
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Universal Bots
Enabling Languages
Smart Bots
Sample Bots
Travel Planning
Flight Search
Event Based Bot Actions
Sentiment Analysis
Tone Analysis
Sentiment Management
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
API Guide
API Overview
API List
SDK Overview
SDK Configuration
SDK Security
SDK App Registration Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Using the BotKit SDK
Installing the BotKit SDK
Events for the BotKit SDK
Functions for the BotKit SDK
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Web Socket Connect & RTM
Bot Administration
Bots Admin Console
User Management
Managing Your Users
Managing Your Groups
Role Management
Bots Management
Inviting Users
Sending Bulk Invites to Enroll Users
Importing Users and User Data
Synchronizing Users from Active Directory
Security & Compliance
Using Single Sign-On
Cloud Connector
Bot Store
Creating a Bot Account
Adding a Bot
Choosing a Channel for a Bot
Interacting with a Bot
Setting Up Web Service Alerts
Setting Up RSS Alerts
Setting Up the Webhook Bot
Custom Bots
Bots for your Customers FAQs
Bots for your Workforce FAQs
Adding Bots
Contacting Support
Setting Up Filters
Bot Store Settings
  1. Home
  2. Docs
  3. Bots
  4. Bot Store
  5. Adding Bots
  6. Adding a Mercurial Bot

Adding a Mercurial Bot provides integration for a built-in Mercurial Bot that you can use to display message notifications and execute tasks directly from the application. To use the Mercurial Bot, you just need to add the Bot to your account, and then configure the settings for the Bot, such as authentication to access Mercurial, and the notification messages that you want. This topic describes the Mercurial built-in Bot for For more information about other Bots, see Adding Bots.

About the Bot for Mercurial

DIYMercurialLogoMercurial is a cross-platform, distributed revision control tool for software developers.

Integration Type Webhook – Connect to this Bot using a webhook integration where the web application pushes message notifications in near real time.
Category Developer Tools – This Bot is available in the application in the Developer Tools category.

Configuring Mercurial

To configure a Mercurial webhook for, you must have a Mercurial account with administrator access as well as API access to configure a webhook. If you don’t, you’ll need to contact the Mercurial system administrator for your company. For more information, see A Tutorial on Using Mercurial in the Mercurial documentation.
To get started configuring the webhook in Mercurial, you’ll need the webhook URL provided when you set up an alert in your account for each alert that you want to enable in Mercurial.
The webhook URL is account-specific and cannot be transferred to any other account. This means that if you configure a Mercurial webhook using a test account, you will have to recreate the alert and get a new webhook URL to configure in Mercurial. The following URL is an example webhook URL.

Configuring Webhook

This procedure describes the steps in Mercurial to configure a webhook using a webhook URL endpoint.
To complete this procedure, you must download the file, save it to yourMercurial repository, and then modify the file with the webhook URL. After you add the file, you must update the existing hgrc file in the same directory of your repository to define the events that trigger alerts.

  1. Download the file using the link at the bottom of this page in theArticle Attachments section, and then save the file to the Mercurial repository in the root of the  <MyRepo>/.hg/ directory for the repository that you want to add the webhook to.
  2. In a text editor of your choice, open the file, and then set the property for the webhook URL by modifying the following line:

    url = “”

    with your webhook URL, and then Save the file.

  3. In the <MyRepo>/.hg/ directory, open the hgrc file in a text editor, and then add the following code that defines the triggers for alert notifications sent to your account.commit = python:.hg/
           incoming = python:.hg/
           outgoing = python:.hg/
           tag = python:.hg/
           changegroup = python:.hg/
           update = python:.hg/
  4. Save the file and commit changes to the repository.

For more information, see Handling repository events with hooks in the Mercurial: The Definitive Guide.
You can setup message notifications to your account using a Mercurial webhook. Click , click Get notified when…, click Repository Updates, and then in the Setup Task dialog:

  • click the Activate button to generate a Webhook URL.
  • copy and save the URL, or click Email Instructions to send the URL to an email account. For more information, see Configuring Mercurial Webhooks.
  • optionally customize the Task Name 
  • optionally customize the Short Description
  • enable or disable Mute task notifications.

Article Attachments

Next Steps

After the webhook is configured in Mercurial, when any of the defined events occur in Mercurial, a message is displayed on the Bots tab in the Messages section for the account.