role
and content
properties; for example, {"role": "user", "content": "What are the best practices for using the product?"}
. If you want to pass the user’s message from the Chatbot interface to the Chat reply block, you can use the @{payload}
variable.palmyra-x5
), temperature (0-1), and max tokens (1-16384).@{chat}
@{payload}
. This passes the user’s message from the Chatbot interface to the Chat reply block.@{chat}
Knowledge Graph
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Conversation Object | Binding | - | - | The variable that has your conversation object. | - | - |
System prompt | Text | Textarea | "" | A system prompt to set the context for the conversation. Can be left empty if conversation is already initialized in state. | - | - |
Message | Object | - | - | An array with messages or a variable to contain save your conversation as an object. | - | - |
Initial model | Model Id | - | palmyra-x5 | - | - | - |
Initial temperature | Number | - | 0.7 | - | - | Range: 0 to 1 |
Initial max tokens | Number | - | 1024 | - | - | Range: 1 to 16384 |
Use streaming | Boolean | - | yes | If set to ‘yes’, the block will stream the reply as it is generated. If set to ‘no’, it will wait for the entire reply to be generated before returning. | - | - |
Tools | Tools | - | - | - | - |
Name | Field | Type | Description |
---|---|---|---|
Tools | tools | dynamic | Run associated tools. |
Success | - | success | If the function doesn’t raise an Exception. |
Error | - | error | If the function raises an Exception. |
dynamic
end state means that the exact values of this end state change based on how you define the block.
The output of the Chat reply block is a string with the most recent response from the AI to the user’s message. You can access the output in the next block with the @{result}
variable.