---
schema_version: "1"
id: 887b7cb2420287be451bc58d5b641917fed1232abf92aee5577459fa1dd8dbe7
title: AgentforceClient
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/android/agentforce-client-android.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-client-android.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 08adba3db9af0e91cdb7f9b95f07dbd57843f0ad7e1c30fe8162c2f7dc8de4fd
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceClient

```kotlin
class AgentforceClient : AgentforceConversationManaging
```

Implementation of AgentforceClient. This will allow to start the Agentforce conversations and presents window.

## Constructors

- `AgentforceClient()`

## Properties

| Property                         | Type                              | Mutability   | Description                                  |
| -------------------------------- | --------------------------------- | ------------ | -------------------------------------------- |
| agentforceInstrumentationHandler | AgentforceInstrumentationHandler? | var          | Analytics and performance monitoring handler |
| contextManager                   | AgentforceContextManager?         | var          | Context manager instance                     |
| conversationService              | ConversationService               | lateinit var | Conversation service instance                |
| onboardingManager                | AgentforceOnboardingManager       | lateinit var | Onboarding manager instance                  |
| pageContext                      | StateFlow<AgentforcePageContext>  | val          | Page context state flow                      |

## Functions

| Function                            | Signature                                                                                                                   | Description                                                                             |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| AgentforceCardContainer             | `@Composable override fun AgentforceCardContainer(Modifier, AgentforceConversation, AgentforceComponent): Unit`             |                                                                                         |
| AgentforceConversationContainer     | `@Composable open override fun AgentforceConversationContainer(AgentforceConversation, onClick: () -> Unit): Unit`          | Draws the Agentforce conversation container with a top bar                              |
| AgentforceConversationContainer     | `@Composable open override fun AgentforceConversationContainer(AgentforceConversation, Boolean, onClick: () -> Unit): Unit` | Draws the Agentforce conversation container                                             |
| AgentforceLauncherContainer         | `@Composable open override fun AgentforceLauncherContainer(AgentforceConversation, onClick: () -> Unit): Unit`              |                                                                                         |
| AgentforceVoiceContainer            | `@Composable fun AgentforceVoiceContainer(AgentforceConversation, onClick: () -> Unit): Unit`                               | Creates a separate voice interface for real-time voice interaction with visual feedback |
| createAgentforceResponseCardManager | `open override fun createAgentforceResponseCardManager(AgentforceConversation, String?): AgentforceResponseCardManager`     | Creates a multiturn card manager for the specified conversation                         |
| findAgentforceConversation          | `fun findAgentforceConversation(String, String?): AgentforceConversation?`                                                  |                                                                                         |
| getCurrentContextManager            | `fun getCurrentContextManager(): AgentforceContextManager?`                                                                 | Returns the current context manager instance                                            |
| init                                | `fun init(CoroutineScope?, AgentforceAuthCredentialProvider?, AgentforceMode, Application): Unit`                           | Initialize the session by providing the required parameters                             |
| startAgentforceConversation         | `open override fun startAgentforceConversation(String?, String?): AgentforceConversation`                                   | Start a conversation with the Agentforce assistant                                      |
| updatePageContext                   | `fun updatePageContext(AgentforcePageContext): Unit`                                                                        |                                                                                         |

## Inherited Functions

- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
