Chatbot
A chatbot is a component that responds to questions sent by users in chat format with answers in chat format.
By linking with resources built using external services, you can use chatbot functions and chatbot functions that utilize RAG.
Properties
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto-generated | id | string | Auto-generated | The [id] property cannot be set by action. |
| 2 | Width | Number String | 640 | width | number/string | 640 | Component width |
| 3 | Height | Number String | 480 | height | number/string | 480 | Component height |
| 4 | X | Number String | x | number/string | X coordinate position | ||
| 5 | Y | Number String | y | number/string | Y coordinate position | ||
| 6 | Background Color | String Color Picker | backgroundColor | string | Component background color | ||
| 7 | Border | Boolean | ON | border | boolean | true | Border display setting |
| 8 | Border Width | Number | 1 | borderWidth | number | 1 | Border width |
| 9 | Rounded Size | Number | 0 | roundedSize | number | 0 | Corner rounding |
| 10 | Border Color | String Color Picker | #DDDDDD | borderColor | string | #DDDDDD | Border color |
| 11 | Agent Name Color | String Color Picker | agentNameColor | string | Agent name text color | ||
| 12 | Agent Message Color | String Color Picker | agentMessageColor | string | Agent message text color | ||
| 13 | Agent Message Background Color | String Color Picker | agentMessageBackgroundColor | string | Agent message background color | ||
| 14 | User Name Color | String Color Picker | userNameColor | string | User name text color | ||
| 15 | User Message Color | String Color Picker | userMessageColor | string | User message text color | ||
| 16 | User Message Background Color | String Color Picker | #BAD6F2 | userMessageBackgroundColor | string | #BAD6F2 | User message background color |
| 17 | Submit Button Color | String Color Picker | submitButtonColor | string | Submit button color | ||
| 18 | Message Form Input Color | String Color Picker | messageFormInputColor | string | Input form text color | ||
| 19 | Message Form Background Color | String Color Picker | messageFormBackgroundColor | string | Input form background color | ||
| 20 | Disclaimer Color | String Color Picker | disclaimerColor | string | Disclaimer text color | ||
| 21 | Read Only | Boolean | OFF | readOnly | boolean | false | Read-only mode |
| 22 | Visibility | Boolean | ON | visibility | boolean | true | Visibility state |
| 23 | Agent Name | String | Agent | agentName | string | Agent | Agent name |
| 24 | User Name | String | You | userName | string | You | User name |
| 25 | Agent Avatar | String | https://template-ui-image.webperformer.jp/image/Chatbot-Agent_alpha.svg | agentAvatar | string | https://template-ui-image.webperformer.jp/image/Chatbot-Agent_alpha.svg | Agent avatar image URL |
| 26 | User Avatar | String | https://template-ui-image.webperformer.jp/image/Chatbot-User_alpha.svg | userAvatar | string | https://template-ui-image.webperformer.jp/image/Chatbot-User_alpha.svg | User avatar image URL |
| 27 | RAG | Boolean | ON | RAG feature enablement (no action property) | |||
| 28 | Service Name | Selection 1. AWS Bedrock 2. Azure Open AI 3. GCP Vertex AI | AWS Bedrock | External service to integrate (no action property) | |||
| 29 | AI Settings | JSON | AI settings JSON (no action property) | ||||
| 30 | AI Credentials | String Selection Dialog | Credential file path (no action property) | ||||
| 31 | System Prompt | String | System prompt (no action property) | ||||
| 32 | Message Form Value | String | messageFormValue | string | Input form initial value | ||
| 33 | Message Form Placeholder | String | Type your message… | messageFormPlaceholder | string | Type your message… | Input form placeholder |
| 34 | Message Form Rows | Number | 1 | messageFormRows | number | 1 | Input form row count |
| 35 | Messages | Table | [{“role”:“agent”,“content”:“Hello! How can I help you today?”}] | messages | array of object | [{“role”:“agent”,“content”:“Hello! How can I help you today?”}] | Chat messages |
| 36 | Disclaimer | String | AI-generated. May contain errors. | disclaimer | string | AI-generated. May contain errors. | Disclaimer text |
External Services
The following external services can be linked.
- AWS Bedrock
- Azure OpenAI
- GCP VertexAI
The combinations of retrievers and embedding models supported for each service are shown in the table below.
| Service | Retriever | Embedding model |
|---|---|---|
| AWS Bedrock | Amazon Bedrock Knowledge Bases | No setup required |
| Pinecone | Amazon Bedrock | |
| Azure Open AI | Azure AI Search | Azure Open AI |
| Pinecone | Azure Open AI | |
| GCP Vertex AI | Vertex AI Vector Search | Vertex AI |
| Pinecone | Vertex AI |
AI Settings Specifications
AI settings describe settings for using resources built with external services.
In addition, settings for controlling response content can be described as desired.
Please describe settings according to the specifications of the external services you use.
AWS Bedrock:
https://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/model-parameters.html
Azure OpenAI:
https://learn.microsoft.com/ja-jp/azure/ai-foundry/openai/reference
GCP Vertex AI:
https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference?hl=ja#request
https://ai.google.dev/gemini-api/docs/safety-settings?hl=ja#javascript
https://cloud.google.com/vertex-ai/docs/general/googleapi-access-methods?hl=ja
| Service | Pattern | Setting items (* indicates required fields) |
|---|---|---|
| AWS Bedrock | chat |
|
| chat + rag Retriever:Amazon Bedrock Knowledge Bases |
|
|
| chat + rag Retriever:Pinecone |
|
|
| Azure OpenAI | chat |
|
| chat+rag Retriever:Azure AI Search [Notes] The index structure should be designed as follows ・ id (String) => Retrievable, searchable ・ content (String) => Retrievable, searchable ・ content_vector (SingleCollection) => Searchable ・ metadata (ComplexType) 〇 source (String) => Retrievable, searchable 〇 chunk (String) => Searchable 〇 attributes (ComplexTypeCollection) ・ key (String) => Filterable ・ value (String) => Searchable |
|
|
| chat+rag Retriever:Pinecone |
|
|
| GCP Vertex AI | chat |
|
| chat+rag Retriever:Vertex AI Vector Search |
|
|
| chat+rag Retriever:Pinecone |
|
AI Credential File Specification
AI Credential files contain authentication information for using resources built by external services.
| Services | Patterns | Setting items (* indicates required items) |
|---|---|---|
| AWS Bedrock | chat |
|
| chat + rag Retriever:Amazon Bedrock Knowledge Bases |
|
|
| chat + rag Retriever:Pinecone |
|
|
| Azure OpenAI | chat |
|
| chat+rag Retriever:Azure AI Search |
|
|
| chat+rag Retriever:Pinecone |
|
|
| GCP Vertex AI | chat |
|
| chat+rag Retriever:Vertex AI Vector Search |
|
|
| chat+rag Retriever:Pinecone |
|