---
title: "Configuring Automatic Responses"
canonical: "https://support.appfire.com/space/CFSD/147783926/Configuring%20Automatic%20Responses"
format: markdown
---
# Overview

Chat for Jira Service Management Server/Data Center is able to integrate with [IBM Watson Assistant](https://www.ibm.com/watson/) to automatically handle conversations with a customer. This feature is useful in many situations, for example:

- handling the customer conversations when you are contacted after your office hours, when there is no human agent available
- handling greetings and introductions
- serving self-help material, such as pointers to knowledge base articles relevant for the customer's problem

When you enable the Assistant for the service portal, it will handle conversations **until the human agent responds to the customer**. After that, the Assistant no longer follows the conversation and it must be handled by humans from then on.

Additionally, you can configure the Assistant to only respond:

- to requests that are not yet assigned to any human agents
- when no human agent is [online](https://appfire.atlassian.net/wiki/spaces/CFSD/pages/147784168) in your organization - in this case, the customer will see the "robot" icon in the chat widget instead of the usual "paper plane":

# Prerequisites

In order for Chat for Jira Service Management Server/Data Center to be able to integrate with IBM Watson Assistant, your Jira must be able to make direct outgoing network calls to the Assistant's API web service URL** **(see below).** **You may need to configure your network firewall rules to allow this.

Chat for Jira Service Management can only integrate with IBM Watson Assistant instances created using the "Classic Experience" configuration user interface. Assistant instances created using "New experience" are not currently supported. In order to switch to the "classic experience", follow the steps shown on the screenshot below, before configuring the assistant at the IBM bluemix console:

![image](media://c5452f1e-b888-4ab4-938b-c381c9fc94e5)

# Configuration

![image](media://e1b72e90-8c14-4735-9d14-ab2ca81af5c8)

Configuring the Assistant requires:

- specifying the **Assistant ID** of the assistant, which you want to use for this project's chat
- specifying **Service URL **of the assistant, which depends on which geographical region the assistant was instantiated on the IBM infrastructure
- setting **API key** for access to the assistant

To find the **Service URL** and **API key**, go to the [bluemix console page](https://console.bluemix.net/dashboard/apps?category=watson) and click on the assistant service to show its details:

![image](media://b6c92967-8961-4a90-ba6e-14fdd5e9db91)

![image](media://1ebf03ac-e278-4e22-a4db-9df9f909fd52)

It is important to note that access credentials of your Assistant instance must have been created **after **<span style="color: #161616">**13 December 2019**</span><span style="color: #161616">. If they are older, they cannot be used with Chat. You will recognize this problem by the fact that </span><span style="color: #161616">**Service URL **</span><span style="color: #161616">is going to be of the form </span>**[https://gateway-.watsonplatform.net/assistant/api](https://gateway-.watsonplatform.net/assistant/api)**** **- for example **[https://gateway-fra.watsonplatform.net/assistant/api](https://gateway-fra.watsonplatform.net/assistant/api)**`.`

If this is the case, you will have to create new credentials and use their **Service ID** and **API Key:**

![image](media://a8b381bb-1d4c-47dc-ac65-cf8784d0991d)

You can find the usable **Service URL **as well as **API Key **in the newly created credentials:

![image](media://ef99b050-c37a-4462-85c2-bc97511e767f)

To find the **Assistant ID**, launch the assistant settings page:

![image](media://356bfd01-3d10-4488-bdde-fcbee4a46197)

![image](media://7d57ddd4-6c21-4917-9e54-3baa2b873415)

In the settings, go to the **API Details** tab, where you will find the **Assistant ID**:

![image](media://c512b85c-bcef-41e8-b934-86a2cece1b6b)

# Training the Assistant

In order to be useful, the IBM Watson Assistant must be trained to respond to the customer appropriately for the Service Desk portal, where you want to use it. This training is crucial for the proper operation of the assistant.

To learn how to train the Assistant, go to its [getting started page](https://cloud.ibm.com/docs/assistant?topic=assistant-getting-started).