---
schema_version: "1"
id: 024671c1eb778c4eabc47ca647687c1f100ff25d72f6fe54a8b549e8cf01bfb6
title: AgentforceConversationState
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-conversation-state-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-conversation-state-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4e115e84e3a3b015128728cbff08062caa3fa050e66f4cd104ca25ae975e5b47
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceConversationState

## Overview

Represents the current operational state of an Agentforce conversation session. This enumeration tracks the lifecycle stages of a conversation, enabling applications to respond appropriately to state changes and provide relevant user feedback. Understanding session state is crucial for managing user expectations and handling error conditions gracefully.

## Declaration

```swift
enum AgentforceConversationState
```

## Properties

| Property     | Type | Description                                                                         |
| ------------ | ---- | ----------------------------------------------------------------------------------- |
| initializing | case | The conversation is establishing its initial connection with the Agentforce service |
| active       | case | The conversation session is fully established and ready for user interaction        |
| sending      | case | A message is being sent to Agentforce                                               |
| receiving    | case | Waiting for a response from Agentforce                                              |
| refreshing   | case | The conversation session is attempting to recover from a temporary disruption       |
| ended        | case | The conversation has been explicitly ended by the user                              |
| error        | case | An error has occurred that prevents normal conversation operation                   |
