Vertex AI
Last updated
Last updated
This guide will walk you through Vertex AI integration with BotDistrikt to enhance your bot's natural language understanding and generation capabilities. Before you begin the integration process, ensure the following prerequisites:
Ensure you have Created an active Access Token on Personality -> Settings
Google Cloud Account: You must have a Google Cloud Project account to access Vertex AI services.
Go to Vertex AI --> Go to console -->
Open your Google Cloud Console.
Click IAM and admin under Quick Access.
On the left-hand side navigation panel, click Service accounts --> + CREATE SERVICE ACCOUNT
Under Roles, add role as Vertex AI user.
Click Add key --> Create new key. Select key type as JSON and Create.
In your BotDistrikt chatbot, go to Integrations --> Artificial Intelligence --> Vertex AI.
Drop the recently downloaded JSON file to Vertex AI private key JSON file drop box. Once you successfully integrate Vertex AI to your chatbot, click Training and toggle Generate Embeddings for Text Responses ON.
In the Intro prompt, enter the following Retrieval Augmented Generation (RAG) or RetrievalQA Prompt:
To add a new website in Sources, navigate to Sources --> Websites --> New Source Website.
Enter a Crawl Base URL (base URL that the chatbot will crawl to find responses)
Click Crawl.
Or enter your website's Sitemap
Click Load Sitemap.
Once the resources are trained, check the Vertex AI embeddings.
To check, click Responses on the source dashboard for the associated source.
Successful source setup is indicated by a tick in front of Vertex AI.
Test your sources through the chatbot widget.
On the Service accounts dashboard, click on the three vertical dots under Action and select Manage keys.
You will see a list of the URLs available on the website. Once the webpages are loaded, click beside each URL to inspect responses. Click Add to add individual resources, or Bulk Add to add resources in bulk.