How to integrate a custom Webex Chat Bot with YakChat
Overview
Adding YakChat to Webex chat enables you to send and receive text messages in the same way as chatting to colleagues.
You will need admin permission to the Webex Developer and Admin portal to complete the following step by step instructions on this article. For further assistance kindy contact us at info@yakchat.com if you have any problem.
Step 1: Add YakChat as a Webex Bot
- Open https://developer.webex.com, sign in as an administrator and then click or your avatar (top right) to select My Webex Apps.
- When the My Apps page is displayed, click on the Create a New App button
- When the Create a New App page is displayed, click on the Create a Bot button
- When the the New Bot page is displayed, complete the following information
- Enter the Bot Name and Bot Username of your choice.
The icon needs to be exactly 512x512px
- Enter the App Hup description e.g. "Send and receive text messages from a Webex Space".
- Once you have completed your form, click Add bot.
The Bot Name is used to create a space to enable new text messages to sent using Webex Chat and so it needs to be recognizable and found using Search
e. Webex will provide a Bot access token. Copy this token and paste it somewhere safe for now as this will be used later in the installation.
Step 2: Create a new Integration in Webex
- Navigate back to the Create a New App page and this time click on the Create an integration button.
b. When the New Integration page is opened, complete the following information: - Select "No" for Will this integration use a mobile SDK.
- Enter the Integration name e.g. "YakChat Integration"
- Add the YakChat icon which you can download from here (the icon needs to be exactly 512x512px).
- Enter the App Hub Description for example "This integration is used to enable YakChat to send messages from within a Webex space by simply replying to an inbound text message."
- Enter the following Redirect URI(s): https://webex-api.yakchat.com/UserAuth
c. Scroll down the page and select the following from the list of Scopes:
- spark:memberships_read
- spark:messages_read
- spark:people_read
- spark:rooms_read
- spark:rooms_writ
- spark:teams_read
There is a long list of scopes and the above are listed in the same order as they appear in the Webex developer portal to make it easier.
d. Scroll right to the bottom and click the Add Integration button.
e. Copy the Client ID and Client Secret displayed in the OAuth
settings (to be used in the next step)
Step 3: Add integration details into YakChat
- Open the YakChat Admin Portal and navigate to the Integrations page.
- Click on the Add button the Webex tile and add the Webex bot token, the client id and the client secret obtained in the above steps.
Step 4: How to use YakChat in Webex chat
Instructions on how to use YakChat in Webex chat to send and receive messages for the first time are provided here.