dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
846 stars 465 forks source link

Create a starter site example implementing a chatbot using dotAI #28956

Closed john-thomas-dotcms closed 1 month ago

john-thomas-dotcms commented 3 months ago

Parent Issue

No response

Task

Customers are asking for information on how to create a chatbot with dotAI.

While we can document this, the simplest and fastest way to get customers up and running with a dotAI chatbot is with a code example,. And the proper place to put that is in the starter site.

The example should:

Proposed Objective

Technical User Experience

Proposed Priority

Priority 2 - Important

Acceptance Criteria

  1. When dotAI is enabled, a user can navigate to the TravelBot page and have a conversation with the bot.
  2. When dotAI is not enabled a user who navigates to the TravelBot page will see a message "TravelBot is build with dotAI, the dotCMS suite of AI features. Please configure the dotAI App to enable dotAI and TravelBot."
  3. When a new blog, Activity, or Destination content item is added, TravelBot should be able to respond to questions about those new content items within a short period of time (long enough for the new content to be added to the embeddings index).

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

hmoreras commented 2 months ago

QA Note:

The bot is now under https://starter.dotcms.com/TravelBot/

Ai APP configuration:

Image

DotAi Embeddings Configurations: A new index named travelBot was created

Image

Site Seach Index: A site search index was created, will run all days at 1am.

Image

New Apivtl to get the token: https://starter.dotcms.com/api/vtl/ai

victoralfaro-dotcms commented 1 month ago

Tested on Docker local instance: image With starter: image image

App is NOT configured image TravelBot page message: image

App is configured image image Embeddings indexing image

TravelBot image Some results: image

After adding a Blog content about Alaska image image

image

hmoreras commented 1 month ago

QA Note: use at minimum this startert: https://repo.dotcms.com/artifactory/libs-release-local/com/dotcms/starter/20240724/starter-20240724.zip

josemejias11 commented 1 month ago

Approved: Tested on trunk_4a03b35, Docker, macOS 14.5, FF v126.0.1

CUSTOM_STARTER_URL: "https://repo.dotcms.com/artifactory/libs-release-local/com/dotcms/starter/20240724/starter-20240724.zip"