A functionality for Brevia Chatbots using Nuxt Layers
Make sure to install the dependencies:
npm install
Add the dependency to extends
in nuxt.config
:
defineNuxtConfig({
extends: [
['github:brevia-ai/nuxt-chatbot-layer', { install: true }]
],
})
You can customize the chatbot by setting environment variables in the .env
file of your app:
## Chatbot settings
NUXT_PUBLIC_MAX_MESSAGES=3
NUXT_PUBLIC_START_MESSAGE='Questo è un messaggio iniziale di test!'
NUXT_PUBLIC_EXAMPLE_QUESTIONS=["Cosa posso chiederti?"]
## Uncomment to make actions menu visible on chatbot response
# NUXT_PUBLIC_CHAT_ACTIONS = 'false'
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm build