> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.ChatbotTurn

# <a id="SuperOffice_WebApi_Data_ChatbotTurn" /> Class ChatbotTurn

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for ChatbotTurn.
Chat turn contains one user question, an optional display value for the user prompt, and one chatbot response.

```csharp theme={null}
public class ChatbotTurn
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ChatbotTurn](SuperOffice.WebApi.Data.ChatbotTurn.md)

#### Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_ChatbotTurn__ctor" /> ChatbotTurn()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public ChatbotTurn()
```

## Properties

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_Attachments" /> Attachments

optional array of attachments - can be URL or Base64 encoded data

```csharp theme={null}
public virtual string[] Attachments { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)\[]

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_BotActions" /> BotActions

optional dictionary of action buttons. Key = Display text, Value = Prompt text

```csharp theme={null}
public virtual StringDictionary BotActions { get; set; }
```

#### Property Value

[StringDictionary](SuperOffice.WebApi.Data.StringDictionary.md)

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_BotResponse" /> BotResponse

Text from the chatbot

```csharp theme={null}
public virtual string BotResponse { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_Timestamp" /> Timestamp

UTC timestamp for turn - when response was generated.

```csharp theme={null}
public virtual DateTime Timestamp { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_UserDisplayText" /> UserDisplayText

Optional display value to use instead of the the UserPrompt

```csharp theme={null}
public virtual string UserDisplayText { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_ChatbotTurn_UserPrompt" /> UserPrompt

Text from the user

```csharp theme={null}
public virtual string UserPrompt { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## See Also

[AIAgent](SuperOffice.WebApi.Agents.AIAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.AI GetChatbotResponseRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_GetChatbotResponseRequest.md)
- [SuperOffice.WebApi.Agents.AIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AIAgent.md)
- [SuperOffice.WebApi.Agents.IAIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IAIAgent.md)
- [SuperOffice.WebApi.Data.AI GetChatbotTurnsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_GetChatbotTurnsRequest.md)
- [SuperOffice.WebApi.Data.AI ClearChatbotTurnsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_ClearChatbotTurnsRequest.md)
- [SuperOffice.WebApi.Data.AI GetChatbotPromptSuggestionsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_GetChatbotPromptSuggestionsRequest.md)
