Chatbot
A chatbot is a component that responds to questions sent by users in chat format with answers in chat format.
By using the pre-built generative AI model and RAG environment provided by WebPerformer-NX, you can use chatbot functions and chatbot functions that utilize RAG without complex configuration.
You can also use chatbot functions and chatbot functions that utilize RAG by integrating with resources built using external services.
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 | Lock | Boolean | OFF | lock | boolean | false | When ON, the component stays fixed even when the screen is scrolled. When OFF, the component moves along with the screen scroll. Added in v4.1.0. |
| 7 | Background Color | String Color Picker | backgroundColor | string | Component background color | ||
| 8 | Border | Boolean | ON | border | boolean | true | Border display setting |
| 9 | Border Width | Number | 1 | borderWidth | number | 1 | Border width |
| 10 | Rounded Size | Number | 0 | roundedSize | number | 0 | Corner rounding |
| 11 | Border Color | String Color Picker | #DDDDDD | borderColor | string | #DDDDDD | Border color |
| 12 | Agent Name Color | String Color Picker | agentNameColor | string | Agent name text color | ||
| 13 | Agent Message Color | String Color Picker | agentMessageColor | string | Agent message text color | ||
| 14 | Agent Message Background Color | String Color Picker | agentMessageBackgroundColor | string | Agent message background color | ||
| 15 | User Name Color | String Color Picker | userNameColor | string | User name text color | ||
| 16 | User Message Color | String Color Picker | userMessageColor | string | User message text color | ||
| 17 | User Message Background Color | String Color Picker | #BAD6F2 | userMessageBackgroundColor | string | #BAD6F2 | User message background color |
| 18 | Submit Button Color | String Color Picker | submitButtonColor | string | Submit button color | ||
| 19 | Message Form Input Color | String Color Picker | messageFormInputColor | string | Input form text color | ||
| 20 | Message Form Background Color | String Color Picker | messageFormBackgroundColor | string | Input form background color | ||
| 21 | Disclaimer Color | String Color Picker | disclaimerColor | string | Disclaimer text color | ||
| 22 | Read Only | Boolean | OFF | readOnly | boolean | false | Read-only mode |
| 23 | Visibility | Boolean | ON | visibility | boolean | true | Visibility state |
| 24 | Agent Name L | String | Agent | agentName | string | Agent | Agent name |
| 25 | User Name L | String | You | userName | string | You | User name |
| 26 | 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 |
| 27 | 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 |
| 28 | AI Service | Selection 1. Internal 2. External | External | When set to Internal, the pre-built generative AI model can be used. When set to External, resources built with external services can be connected and used. Added in v4.1.0. | |||
| 29 | RAG | Boolean | ON | RAG feature enablement | |||
| 30 | Service Name | Selection 1. AWS Bedrock 2. Azure Open AI 3. GCP Vertex AI | AWS Bedrock | External service to integrate. Disabled when AI Service is set to Internal. | |||
| 31 | AI Settings | JSON | AI settings JSON for external services. Disabled when AI Service is set to Internal. | ||||
| 32 | AI Credentials | String Selection Dialog | Credential file path. Disabled when AI Service is set to Internal. | ||||
| 33 | Internal AI Settings | JSON | AI settings JSON for the pre-built AI. Only enabled when AI Service is set to Internal. Added in v4.1.0. | ||||
| 34 | System Prompt | String | System prompt | ||||
| 35 | Cache Disabled | Boolean | OFF | cacheDisabled | boolean | false | Cache usage state for avatar image. Added in v4.1.0. |
| 36 | Message Form Value L | String | messageFormValue | string | Input form initial value | ||
| 37 | Message Form Placeholder L | String | Type your message… | messageFormPlaceholder | string | Type your message… | Input form placeholder |
| 38 | Message Form Rows | Number | 1 | messageFormRows | number | 1 | Input form row count |
| 39 | Messages L | 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 |
| 40 | Disclaimer L | String | AI-generated. May contain errors. | disclaimer | string | AI-generated. May contain errors. | Disclaimer text |
Using the Pre-built Generative AI Model
When the AI Service property is set to Internal, you can use the generative AI model and RAG environment provided by WebPerformer-NX.
The available model is as follows:
- Claude Sonnet 4.5
Internal AI Settings Specifications
Internal AI Settings describe settings for using the generative AI model and RAG environment provided by WebPerformer-NX.
Additionally, settings to control response content can be described as desired.
| Service | Pattern | Setting items (* indicates required fields) |
|---|---|---|
| Internal | chat |
|
| chat + rag |
|
Using External Services
When the AI Service property is set to External, you can use generative AI models and RAG environments prepared with external services.
The following external services can be integrated:
- 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.
| 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 |
|
|
| chat+rag Retriever:Pinecone |
|
|
| GCP Vertex AI | chat |
|
| chat+rag Retriever:Vertex AI Vector Search |
|
|
| chat+rag Retriever:Pinecone |
|