Skip to content

IBM/watsonx-chatbot-lab.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

watsonx-chatbot-lab.github.io

A template to embed the watsonx assistant chatbot using GitHub pages

The web chat of the watsonx assistant provides an easy-to-use chatbot interface that you can add to your website without writing any code. Here is how you can add the web chat of your watsonx assistant into a static web page and host it using GitHub Pages.

  1. Frist thing first, use the Fork button on the upper right corner of this repository to fork this repository into your namespace. On the Create a new fork page, you can just click the Create fork button.

  2. After you fork the repository, you will be redirected to the forked version under your namespace. Click the Settings on the very right of the menu on top of the repository name.

    settings

  3. On the Settings page, click on the Pages in the navigation menu on the left-hand side.

    pages

  4. In the Branch section, select the main branch from the drop-down list and click the Save button.

    branch-1

    branch-2

    branch-3

  5. Open your watsonx assistant editor and get the code snippet by following this instructions

  6. Go back to the repository you forked and show the file list view by clicking the Code in the menu bar.

    code

  7. Click on the gear icon in the About section

    about

  8. In the Website section, check the Use your GitHub Pages website checkbox and click Save Changes button to save the change.

    my github pages

    Now you GitHub Pages URL will show up in the About section.

  9. Click the index.html file, and you will see the HTML content of the sample file.

    sample html

  10. Directly edit the file by clicking the Pencil icon on the upper-right corner of the HTML content. pencil

  11. You should see a comment saying: <!-- Replace the code below with the web chat code snippet from your watsonx assistant --> Replace the code below that comment with your web chat code snippet and click the Commit changes... button on the upper-right corner. In the pop-up widget, edit the commit message you see fit and click the Commit changes button to save the change.

  12. Click the Actions on the top menu bar, you should see a workflow named page build and deployment is running or finished. Click it to show the workflow details.

    action

  13. Click on the URL link on the deploy node. It will redirect you to the index.html page with the embedded web chat!

    deploy-node

About

A template to embed the watsonx assistant chatbot using GitHub pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages