BotDistrikt Documentation
  • 🟢Introduction
    • 👋Hello World
    • 🚀Quick Start
    • 🛠️Setup your Account
      • Register for BotDistrikt
      • Forgot Password
      • Chatbots Dashboard
      • Edit Profile
  • 📱Channels
    • Channels Overview
    • Website Chat
      • Website Chat Quick Start
      • Guest Users
    • Facebook Messenger
      • Import Existing Users
      • Facebook Chat Plugin
      • Facebook Checkbox Plugin
      • Facebook Private Replies
      • Facebook Ads Manager
    • Instagram
      • Import Existing Users
      • Instagram Story Mentions
    • Twitter
    • Skype
    • WhatsApp
      • Twilio WhatsApp Integration
    • Telegram
      • Telegram Commands
      • Telegram Groups
      • Telegram Channels
    • SMS
    • Google Assistant
    • WeChat
    • Other Channels
  • 🏆Features
    • Personality
    • Dashboard
    • Forms
    • Rules
      • Conditions
        • Message
        • User Attribute
    • Stories
      • Update Greeting and Fallback from Personality
    • Responses
      • Text
      • Cards
      • Images
      • Videos
      • Audios
      • Documents
      • Webhooks
      • Javascript Functions
    • Sources
      • Websites
      • Documents
      • Google Docs
      • Google Sheets
    • Users
      • Edit Users
      • Delete Users
      • Dear User
    • Inbox
      • Console
      • Messages
      • Reactions
      • Ratings
      • Clicks
      • Broadcast Records
      • Wrong Responses
    • Broadcasts
    • Settings
      • Tags
      • Audit Logs
      • Account
  • ⚙️How BotDistrikt Works
    • Interaction
    • Flow
    • Context
    • Engagement
    • Optimization
    • Artificial Intelligence
  • 🧠Artificial Intelligence
    • OpenAI
    • Vertex AI
    • Wit.ai
    • Dialogflow
      • Connecting to Dialogflow
      • Small Talk Module
        • Importing Responses
      • Multilanguage Support
  • 🧰Business Tools Integrations
    • Webhook
    • Zendesk
    • Chatbase
    • Google Docs
    • Google Sheets
    • Salesforce
  • API Reference
Powered by GitBook
On this page

Was this helpful?

  1. Artificial Intelligence

Vertex AI

PreviousOpenAINextWit.ai

Last updated 11 months ago

Was this helpful?

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:

  1. Ensure you have Created an active Access Token on Personality -> Settings

  2. Google Cloud Account: You must have a Google Cloud Project account to access Vertex AI services.

  3. Go to --> Go to console -->

  4. Open your .

  5. Click IAM and admin under Quick Access.

  1. On the left-hand side navigation panel, click Service accounts --> + CREATE SERVICE ACCOUNT

  1. Under Roles, add role as Vertex AI user.

  1. 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:

Answer the question based on the context below. If the question cannot be answered using the information provided, answer with "I am not trained to answer that question".

Context:
{{nlp.query_responses}}

Rules:
- Answer strictly with only the Context provided above
- If no Context is provided, do not use Vertex to answer, just say "I am not trained to answer that question"
- If no Context is provided, do not make up an answer, just say "I am not trained to answer that question"
- If someone asks about who you are or what you are, you must say "I am a chatbot assistant"

To add a new website in Sources, navigate to Sources --> Websites --> New Source Website.

  1. 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.

🧠
Vertex AI
Google Cloud Console
Google Console --> Quick Access --> IAM and admin
Setup a Service Account in Google Console
Roles --> Vertex AI user
Create JSON key
Toggle Generate Embeddings ON.
Retrieval Augmented Generation (RAG) or RetrievalQA Prompt to Intro Prompt
Enter a Crawl Base URL
Load Sitemap
Click associated URL Responses to check Vertex AI response.