Android Quick Start Guide

Get up and running quickly with the Agentforce Mobile SDK for Android using these instructions.

Ensure you have:

  • A Salesforce org with Agentforce enabled
  • An agent configured in your org (Employee Agent or Service Agent)
  • The required values from your Salesforce org depending on agent type

For detailed setup instructions, see Before You Begin.

You need these values from your Salesforce org:

  • Service API URL: Setup > Embedded Service Deployments > your deployment > Settings
  • Organization ID: Setup > Company Information
  • ES Developer Name: Setup > Embedded Service Deployments > Developer Name

You need these values from your Salesforce org:

  • Agent ID: From the Agent Details page URL (the 18-character ID at the end)
  • User ID: From the user profile. See Find the Salesforce ID for a User.
  • Salesforce Domain: Setup > My Domain > Current My Domain URL

Add the Agentforce SDK to your project.

To learn more, see Install the Android SDK.

See Android Requirements.

To use the SDK, be sure to import the Agentforce SDK packages.

Create a credential provider using one of the supported authentication methods.

To learn more, see Integrate Agentforce SDK.

Configure your chat object for Employee agent or Service agent.

For guidance on gathering information for the agent configuration object, see Agent Type Setup in Before You Begin.

To learn more, see Integrate Agentforce SDK.

Start the chat conversation.

And add the UI component.

To learn more, see Integrate Agentforce SDK.