Zendesk as an inbound channel
Zendesk is software for communication between clients and company employees.
To start using Zendesk as an inbound channel:
- Configure Zendesk OAuth client.
- Create a user with necessary rights and assign it to the bot.
- Create a channel in JAICP.
- Configure a trigger.
- Configure Zendesk manually.
- Test the bot.
Configure Zendesk OAuth client
To connect a bot, register on Zendesk or sign in. Check that your tariff plan allows you to set external profiles for a user. Then, you can configure Zendesk OAuth client:
- In Zendesk, click in the left pane.
- Go to the Channels → API section and select the OAuth Clients tab.
- Select the necessary client from the All OAuth clients list or create a new one.
- Specify the client name in the Unique identifier field and click Save.
- Save the secret key that will appear in a new field. Applications use this key for redirection to your client.
- Click Save.
Create a role and a user for the bot
- In Zendesk, click in the left pane.
- Go to the Manage → People section.
- Click Create role.
- Fill out the Name and Description fields for a new role.
- In the Tickets and System fields, specify necessary access settings for the role.
- Click Add user.
- Fill out the Name and Email fields. Select the role you have created for the bot.
Create a channel
-
In the JAICP dashboard, click Channels → Inbound → Connect channel.
-
In the Others section, select Zendesk.
-
Specify the settings:
- Name is the channel name.
- Access token is the private key from the Zendesk OAuth client settings.
- OAuth client ID is the unique identifier you have received in the Zendesk OAuth client settings.
- Domain is your Zendesk application subdomain you specified during the registration.
- User name is the email of the user created for the bot that will send request replies.
- User password is the password to the account of the user created for the bot.
- Branch is the project branch you want to deploy into the channel (
master
by default). You can also select a Git tag or enter a specific commit hash. - Deployment is one of the two deployment options:
- Automatic: when you save the changes into the project.
- Manual: with the Deploy button in the channel description.
cautionYou have to deploy a script before starting the bot. At this stage, the system builds the bot, checks the script syntax, and performs tests. -
Click Create.
-
Wait for the pop-up window with the result of the deployment. If it is successful, the chatbot is ready to use.
Configure a trigger
Configure the trigger that will notify the bot about a new ticket or an updated one. The notification will be sent if the ticket does not have the bot_no_answer
tag and was created via the Email
channel, and if no support agent has replied to the ticket.
- In Zendesk, click in the left pane.
- Go to the Business roles → Triggers section.
- Click Add trigger.
- Fill out the Trigger name and Description fields.
- In the Conditions section, add conditions in the Meet ALL of the following conditions group of settings:
- Channel → Is → Email
- Agent replies → Less than → 0
- Tags → Contains none of the following →
bot_no_answer
- Add conditions in the Meet ANY of the following conditions group of settings:
- Ticket → Is → Created
- Ticket → Is → Updated
- In the Actions sections, select Notify target.
- Specify the target manually or automatically and add the following text into the JSON body field:
{"ticketId": {{ticket.id}}}
- Click Create.
Configure Zendesk manually
If you cannot assign rights to add targets for the bot, you can do it manually. The target will request the Just AI server.
- In Zendesk, click in the left pane.
- Go to the Settings → Extensions section.
- Click Add target and select HTTP target.
- Fill out the Title, Url, and Method fields. Then, click Submit.
Test the bot
In the connected channel, go to the dialog with the bot. Then, send a welcome / an activating phrase stated in your script to the bot. After that, your dialog with the bot starts.