---
schema_version: "1"
id: 8708f971fc284d0b34b0cafdf9388150b9371bb2be49c466fdb537022e9a7a22
title: AgentforceChatView
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-chat-view-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-chat-view-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ca81f3f312a6f1cd985ecd85f4659543a34807e0d671ad2efc1af552401be7c4
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceChatView

## Overview

Type alias providing a more intuitive name for the main chat interface component. `AgentforceChatView` is the primary SwiftUI view for displaying and interacting with Agentforce conversations. It provides a complete chat interface including message history, input controls, voice interaction, and rich content rendering capabilities.

## Declaration

```swift
typealias AgentforceChatView = ConversationUIContainer
```

## Properties

| Property         | Type        | Description                                                 |
| ---------------- | ----------- | ----------------------------------------------------------- |
| `body`           | `some View` | The main view content of the chat interface                 |
| `alternateTitle` | `String?`   | Optional custom title to display in the conversation header |

## Methods

| Method                    | Signature                                               | Description                                                                                                                        |
| ------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `updateSession(session:)` | `func updateSession(session: AgentConversation) throws` | Updates the conversation session with a new session instance                                                                       |
| `sendUtterance(_:)` ⚠️    | `func sendUtterance(_ utterance: String)` ⚠️            | **Deprecated:** Messages should be sent using [AgentforceConversation.sendUtterance](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-conversation-ios.md#sendutterance) |
| `resetChat()` ⚠️          | `func resetChat()` ⚠️                                   | **Deprecated:** The chat should be cleared using [AgentforceConversation.reset](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-conversation-ios.md#reset)              |
| View Implementations      | `View-Implementations`                                  | Default SwiftUI view implementations                                                                                               |
