Connecting MI Chatbot to Metric Insights
This article details how to finish the MI Chatbot configuration by establishing connectivity between MI Chatbot and a Metric Insights server.
PREREQUISITES:
1. Configure Chatbot
Access Admin > Distribution > Slack Integration > Chatbot tab
- Clear conversation history after N idle minutes: Set the time period of history clearing
- Default search command ("search"/"concierge"): Choose whether Concierge will be used for search commands by default or if it will it be a basic search
- Display debug messages: Select whether to show debug messages in the chat where the Chatbot is installed
-
Enable silent search:
- "true": If Users send any message in the channel where the Chatbot is installed, the user will receive a message only visible to them with the search results based on user input
- "false": The bot will not send anything to users unless explicitly invoked via @ messages
-
Part of URL which specified Bot namespace: Set to
/chatbot
unless corresponding changes were made in the Apache configuration file - Search in tags: Enables the search in tile tags
- Send broadcast messages to channels: Enables notification messages that are sent on restarts or sync fails for all channels where the bot is participating
-
Show Slack image previews in modal popup: Define how the preview images will be shown:
- "Y": Images will be shown in a modal popup
- "N": Images will be shown in the chat
-
Slack bot user token: Bot OAuth Access Token
- See details in Obtain Slack App Credentials
- Slack platform is used: To enable Slack Integration, set it to "True"
-
Slack Signing Secret: A secret used to verify Slack requests
- See details in Obtain Slack App Credentials
-
Slack socket token: App-Level Token
- See details in Generate App-Level Tokens
-
Slack Web API token: OAuth Access Token
- See details in Obtain Slack App Credentials
- URL where the Bot is installed: URL of the server where the bot is installed
- Use Data Analyzer for search: Decide whether to use Data Analyzer for search or not
-
Verify ssl check for mi requests: Select whether to forbid requests from bot to servers without a valid SSL certificate or via an unprotected HTTP protocol
- "true": Such requests are forbidden
- "false": Such requests are allowed
- [Save]
- [Sync Chatbot]
2. Restart MI Chatbot
In order to restart the MI Chatbot, run the following command:
sudo docker restart mi-chatbot
3. What's Next?
Having restarted the MI Chatbot, you can make full use of the available functionality (getting data from Metric Insights and sharing it in a Slack Channel).