0% found this document useful (0 votes)
53 views

Lab 8 - Add A Preview and Retrieve Your Credentials2021v1

This document discusses adding a preview link to a Watson Assistant chatbot and retrieving the chatbot's credentials. It instructs the user to enable the Preview link integration, which generates a link that can be shared to test the chatbot. It also has the user collect the Assistant URL and API key from the chatbot's settings. Finally, it has the user generate a WordPress site using a provided tool in order to deploy the chatbot through a WordPress plugin in the next lab.

Uploaded by

sp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Lab 8 - Add A Preview and Retrieve Your Credentials2021v1

This document discusses adding a preview link to a Watson Assistant chatbot and retrieving the chatbot's credentials. It instructs the user to enable the Preview link integration, which generates a link that can be shared to test the chatbot. It also has the user collect the Assistant URL and API key from the chatbot's settings. Finally, it has the user generate a WordPress site using a provided tool in order to deploy the chatbot through a WordPress plugin in the next lab.

Uploaded by

sp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab 8: Add a preview and retrieve your credentials

The small chatbot we built so far works well enough from the Try it out panel. That's great and
all but our customers won't have access to it unless we deploy it somewhere. Let's see how to
accomplish that.

Exercise 1: Add a Preview link


Assistants within Watson Assistant have an Integrations section from which we can select
various way to deploy our chatbot. Before we look at how to deploy our chatbot on WordPress,
in particular, it would be good to take advantage of the Preview link integration.

This Preview link can be shared with friends and colleagues who'd like to try out your chatbot.

To enable the Preview link, first head over to the Assistants tab. You’ll notice that 0 next to
Integrations. That’s because we don’t have any integrations enabled quite yet. Click on the tile
for your chatbot.

From within your assistant, click on Add integration in the Integrations section.
Lab 8: Add a preview and retrieve your credentials

A new page will appear showing you various options, including Facebook Messenger, Slack,
Intercom, etc. Click on Preview link under Stand-alone integrations.

Rename it, if you wish, and then click on the Create button.

A link will be generated for you. Click on it. That’s your Preview link that you can share with
others who are interested in trying out your chatbot.

Do bear in mind that every time someone sends a message to the chatbot, one API call is made,
and it counts towards your free allowance (10,000 API calls per month in the Lite plan).

Test it out to verify that the chatbot we built so far, does indeed work correctly from this user
interface.
Lab 8: Add a preview and retrieve your credentials

Go back to your Preview link integration (typically in an existing browser tab) and click on Save
changes.
Lab 8: Add a preview and retrieve your credentials

This will add the preview link to your Integrations.

Exercise 2: Retrieve your chatbot credentials


The preview link is quite handy but to actually deploy our chatbot in production, we’ll want to
collect our assistant’s credentials and make note of them.

Click on the more options menu for your Flower Shop Chatbot assistant, then select Settings.

From the settings, click on API Details.


Lab 8: Add a preview and retrieve your credentials

Make note of the Assistant URL and the API Key. You'll need to know them in order to
successfully deploy your chatbot later on.

Make note of them now and then click on the X to close the API credentials page.

Exercise 3: Generate a WordPress site


You followed along and now have a simple Flower Shop chatbot running in your Watson
Assistant service. That's great, but how do we place it on an actual site?

WordPress is a content management system that allows anyone to quickly have a website up
and running. This platform has a lot of features out of the box, and many more can be added
through plugins.

We developed one such a plugin for Watson Assistant to make it extremely easy to place a
chatbot on a WordPress site.

We'll discuss the plugin in the next lab. But first, we need to create a WordPress site.

In the next section of this module, you’ll find a button that will allow you to Generate a
WordPress site. Click on it to generate your site.

Do not create a WordPress.com site. Generate the site using the tool provided. WordPress.com
expects you to pay to be able to install plugins. The WordPress(.org) installation we give you
already has the plugin installed.
Lab 8: Add a preview and retrieve your credentials

You'll be given details about your site, similarly to the ones shown in the figure below.

Please make note of these WordPress credentials you'll be given upon generating the site,
you'll need them to log into the site in the next lab.

In particular, write down somewhere your generated WordPress Dashboard URL (where you'll
log in), your username, and your password. (Note that these are WordPress credentials and
therefore different from the API ones you wrote down earlier in this lab).

If you lose them, you can always come back to the next section of this module (i.e., Generate a
WordPress site) and obtain them again.
Lab 8: Add a preview and retrieve your credentials

Without further ado, go ahead to the next section and actually generate your WordPress site.

Please note that this site is for testing purposes only. Do not use it as your main site as it might
be shut down after a certain period of time.

A note about Assistants and Skills


Assistants have one or more skills. Skills are linked to particular assistants.

You don’t normally have to worry about this because a default assistant and a skill (already
linked to each other) were automatically generated for us when we created our Watson
Assistant instance.

If, in the future, you were to create a new assistant, you’ll want to make sure to link it to a skill.

Note that when you deploy your chatbot, you generally want to use the credentials from the
assistant (like we did in this lab) and not from its skill.

You might also like