appmixer.utils.chat.ChatTrigger
1.0.0
Public
| Field | Type | Description |
|---|---|---|
| url | text | - |
| script | text | - |
| Agent Avatar Icon URL | text | The URL of the agent avatar icon. |
| Agent Name | text | The name of the agent. Default is 'AI Assistant'. |
| Agent Intro | text | The first message of the agent. Default is 'What's on your mind today?'. |
| Agent Description | textarea | The text that appears when a user starts a new chat. Use markdown to describe the agent's capabilities. |
| Agent Prompt Placeholder | text | The placeholder text in the input field where the user types their message. Default is 'Ask anything...'. |
| Public Key | textarea | A public key to verify any request to this chat (sending messages, creating threads, ...). If the public key is set, the chat will only accept requests with a JWT token signed with the private key corresponding to this public key. At the same time, the metadata of the JWT token will be available as variables in the connected components in this flow. This allows you to build conversational flows that are aware of the user's identity and context. Pass your JWT token to the Chat URL ` chat_token query parameter. The same goes for the Chat Script. Locate the chatUrl setting in the code snippet and append ?chat_token={YOUR_GENERATED_JWT_TOKEN} query parameter to the end of the URL.To generate a private/public key pair, you can use the following command: openssl genrsa -out my-private-key.pem 4096openssl rsa -in my-private-key.pem -outform PEM -pubout -out my-public-key.pemThe public key is the content of the my-public-key.pem file. |
| Field | Type | Description |
|---|---|---|
| Session ID | - | |
| Thread ID | - | |
| Message ID | - | |
| Message Content | - | |
| File ID | - | |
| File Name | - | |
| File Type | - | |
| File Size | - | |
| JWT Token | - | |
| JWT Payload | - |