gci-chatbot-ai
v1.0.34
Published
A Vue 3 component for AI-powered chat functionality that can be installed via npm and used in any Vue project.
Maintainers
Readme
ChatbotComponent - Vue AI Chat Component
A Vue 3 component for AI-powered chat functionality that can be installed via npm and used in any Vue project.
Installation
npm install gci-chatbot-ai
# or
yarn add gci-chatbot-aiUsage
Basic Usage
<script setup lang="ts">
import { ChatbotComponent } from 'gci-chatbot-ai'
</script>
<template>
<div>
<ChatbotComponent />
</div>
</template>Custom Configuration
You can customize the API endpoint, client ID, and token:
<script setup lang="ts">
import { ChatbotComponent } from 'gci-chatbot-ai'
</script>
<template>
<div>
<ChatbotComponent client-id="your-client-id" token="your-auth-token" endpoint="https://your-custom-api-endpoint.com/chat" />
</div>
</template>Required Parameters
The ChatbotComponent component requires the following parameters:
client-id: Your client identification stringendpoint: The API endpoint URL for the chat servicetoken: Authentication token for the API
<script setup lang="ts">
import { ChatbotComponent } from 'gci-chatbot-ai'
</script>
<template>
<div>
<ChatbotComponent client-id="required-client-id" token="required-auth-token" endpoint="https://api.example.com/chat" />
</div>
</template>Development
Project Setup
npm installCompile and Hot-Reload for Development
npm run devBuild for Production
npm run buildFeatures
- Easy integration with Vue 3 projects
- Customizable AI chat functionality
- TypeScript support
- Lightweight and performant
Configuration
The component uses the following dependencies:
- Vue 3
- @ai-sdk/vue
- ai (for AI transport)
License
MIT
