Show / Hide Table of Contents

Class AiChatTurnRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ai_chat_turn table.

Inheritance
object
AiChatTurnRecordData
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class AiChatTurnRecordData
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

AiChatTurnRecordData()

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ai_chat_turn table.

Declaration
public AiChatTurnRecordData()
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Fields

AiChatTurnId

Primary key

Declaration
public int AiChatTurnId
Field Value
Type Description
int
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

AssociateId

User id that is chatting with the bot

Declaration
public int AssociateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Attachments

JSON Array of bot - NULL if not set

Declaration
public string Attachments
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

BotActions

Suggested actions (string dictionary) in JSON. NULL if not set

Declaration
public string BotActions
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

BotResponse

AI Bot response to user_prompt - usually text

Declaration
public string BotResponse
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ChatId

The name of this chat topic - usually soproto + id (contact-123, sale-43, diary) but could also be an arbitrary name

Declaration
public string ChatId
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Timestamp

When the chat happened (UTC) in UTC.

Declaration
public DateTime Timestamp
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UserDisplaytext

Display this text instead of the prompt (if set) - could be set by action

Declaration
public string UserDisplaytext
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UserPrompt

What the user typed

Declaration
public string UserPrompt
Field Value
Type Description
string
Remarks

Please use this class instead of a full AiChatTurnRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding AiChatTurnTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
AiChatTurnRecordDataExtensions.ToInsertAsync(AiChatTurnRecordData, CancellationToken)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top