Lab 8 - Add A Preview and Retrieve Your Credentials2021v1
Lab 8 - Add A Preview and Retrieve Your Credentials2021v1
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.
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
Click on the more options menu for your Flower Shop Chatbot assistant, then select Settings.
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.
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.
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.