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 AI Agent.
Inherited Members
Namespace: SuperOfficeCRMServices
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class ChatbotTurn
Constructors
ChatbotTurn()
Default constructor
Declaration
public ChatbotTurn()
Properties
Attachments
optional array of attachments - can be URL or Base64 encoded data
Declaration
[DataMember]
public virtual string[] Attachments { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BotActions
optional dictionary of action buttons. Key = Display text, Value = Prompt text
Declaration
[DataMember]
public virtual StringDictionary BotActions { get; set; }
Property Value
| Type | Description |
|---|---|
| SuperOffice.CRM.Services.StringDictionary |
BotResponse
Text from the chatbot
Declaration
[DataMember]
public virtual string BotResponse { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
UTC timestamp for turn - when response was generated.
Declaration
[DataMember]
public virtual DateTime Timestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
UserDisplayText
Optional display value to use instead of the the UserPrompt
Declaration
[DataMember]
public virtual string UserDisplayText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserPrompt
Text from the user
Declaration
[DataMember]
public virtual string UserPrompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The carrier contents. |
Overrides
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. |