How to Create a Watson AssistantBright Pattern Contact Center integrates with providers like IBM Watson to enable chatbots to be used in your contact center services.In this article, you will learn how to create a basic IBM Watson Assistant that can be used as a conversational bot with your [[5.3:Contact-center-administrator-guide/WebChatConfiguration | configured chat service]]. Note that the instructions provided in this article apply to either IBM Watson Assistant or IBM Watson Assistant (Conversation).[[File:BPChat-Ex-1.PNG|thumb|450px|center|Chat showing an integrated Watson Assistant and suggestions for the agent]]This procedure will walk you through the process of setting up your first Watson Assistant. For a deeper understanding of Watson Assistant and other IBM resources, refer to [https://console.bluemix.net/docs/services/conversation/getting-started.html#getting-started-tutorial IBM’s Getting Started tutorial] and [https://console.bluemix.net/apidocs/assistant IBM’s API Reference].# Sign up for [https://console.bluemix.net/ IBM Cloud]. IBM Cloud is where you will be developing and managing resources like Watson Assistant bots.Because you selected the sample skill, the ''Assistant'' page will show some preconfigured intents. ''Intents'' are actions triggered by keywords entered by your customer.In Watson syntax, intents always begin with the hashtag ("#") symbol, followed by word(s) in title case (i.e., where the first letter of a word is capitalized, unless it's a preposition like "to" or an article like "the"). Multiple words are separated by underscores ("_").Like this: '''#Talk_to_Someone'''Get familiar with intents by clicking on the first one in the list. In this example, we clicked on '''#Cancel''' to review its properties. You can leave all the preconfigured intents as-is or add new user examples.[[File:Intent-Cancel.PNG|thumb|650px|center|Example of Intent properties]]For every intent, you need to specify:* '''User examples''' - Keywords and phrases that trigger the intent (e.g., anything a customer might type during the chat); add as many examples and variations of spelling/phrases as you can, as the user examples are what make the bot compelling and helpful[[File:User-examples.PNG|thumb|800px|center|User examples]]Click on the ''Entities'' tab at the top of the ''Assistant'' page. As with intents, you will see some preconfigured entities. ''Entities'' are like word sets that more narrowly define the customer text that the bot recognizes.In Watson syntax, entities always begin with the "@" symbol, followed by word(s) in lowercase. Multiple words are separated by underscores ("_").Like this: '''@zip_code'''Get familiar with entities by clicking on the first one in the list. In this example, we clicked on '''@holiday''' to review its properties. For this example, leave all the preconfigured entities as-is.[[File:Entities-Add.PNG|thumb|800px|center|Example of entities]]For every entity, you need to specify:* '''Synonyms''' - Related words that could be used in place of the value name (e.g., "turkey day" could be a synonym for "Thanksgiving"); if you don't know any synonyms, IBM can recommend some for you[[File:Entity-Values.PNG|thumb|800px|center|Entity values]]Click on the ''Dialog'' tab at the top of the ''Skills'' page. The dialog for the sample skill you selected in Step 3 will be shown.A dialog is like a [[5.3:Tutorials-for-admins/AI/HowtoIntegrateBotswithChat#Step_5:_Edit_the_Scenario_to_Work_with_Your_Bot | scenario]] in that it defines what the bot does in response to a customer's text or actions. When you design your dialog flow, you are telling the Watson Assistant what to do when it recognizes defined intents and entities during an active chat. Branches of a dialog are called ''nodes'', and nodes can be organized into ''folders''.[[File:Sample-Dialog-Properties.PNG|thumb|800px|center|Sample dialog]]In this example, we are going to leave everything in the dialog as-is. Click on the "Hours of Operation" node to open up properties for that node:* '''Wait for user input''' - Select this to provide a bot response only when the customer types somethingPlease read IBM's documentation to get a deeper understanding of Watson Assistant skills, intents, entities, and dialogs. Refer to [https://console.bluemix.net/docs/services/conversation/getting-started.html#getting-started-tutorial IBM’s Getting Started tutorial] and [https://console.bluemix.net/apidocs/assistant IBM’s API Reference].Now that you're done creating a dialog skill, it's time to assign the skill to your Watson Assistant. This last step is important because later, you may have multiple Watson Assistants and skills, and IBM needs to know which ones are assigned to each other.# Click on the desired skill name. That's it.[[File:Add-Dialog-Skill.PNG|thumb|650px|center|Add skill]]You have now set up a very basic Watson Assistant that can be integrated with Bright Pattern Contact Center. You may now:* Read IBM's documentation, explore the Watson Assistant, and edit it as desired* Create a Watson [[Contact-center-administrator-guide/IntegrationAccounts/BotChatSuggestionsEngine#Watson_Conversation_Properties | bot/chat suggestions integration account]] * Edit a [[Scenario-builder-reference-guide/HowtoCreateChatScenarioThatUsesBots | chat scenario that uses your Watson Assistant]]