Class ChatbotTurn
Chat turn contains one user question, an optional display value for the user prompt, and one chatbot response.
Carrier object for ChatbotTurn. Services for the ChatbotTurn Carrier is available from the IAIAgent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
public class ChatbotTurn : Object
Constructors
ChatbotTurn()
Default constructor
Declaration
public ChatbotTurn()
See Also
Properties
Attachments
optional array of attachments - can be URL or Base64 encoded data
Declaration
public virtual string[] Attachments { get; set; }
Property Value
Type | Description |
---|---|
String[] |
See Also
BotActions
optional dictionary of action buttons. Key = Display text, Value = Prompt text
Declaration
public virtual StringDictionary BotActions { get; set; }
Property Value
Type | Description |
---|---|
StringDictionary |
See Also
BotResponse
Text from the chatbot
Declaration
public virtual string BotResponse { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Timestamp
UTC timestamp for turn - when response was generated
Declaration
public virtual DateTime Timestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
See Also
UserDisplayText
Optional display value to use instead of the the UserPrompt
Declaration
public virtual string UserDisplayText { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
UserPrompt
Text from the user
Declaration
public virtual string UserPrompt { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
See Also
ToString(String)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
String | The carrier contents. |