BotsAPI
class BotsAPI
Accesses the Bots API by sending user input and parsing the response.
| Parameter | Type | Description |
|---|---|---|
| application | Application? | Android application instance for context |
| network | Network | Network interface for API communication |
| logger | Logger? | Logging interface implementation |
| instrumentationHandler | AgentforceInstrumentationHandler? | Analytics and performance monitoring |
| Property | Type | Description |
|---|---|---|
| BOT_ID | String | Bot identifier constant |
| SESSION_ID | String | Session identifier constant |
Retrieve the Bot id
Get recommended utterances
Log O11Y_FETCH_AGENTS_MARKER perf o11y.
Sends additional context to the Bots API
Parameters:
| Parameter | Type | Description |
|---|---|---|
| botId | String | ID of the bot to request a response from |
| sessionId | String? | ID of the session that is being referenced by the input |
| inputRepresentation | ConversationInputRepresentation | ConversationInputRepresentation payload |
Contains constants for BOT_ID and SESSION_ID.
- AgentforceAPI - General API interface for Agentforce services
- AgentforceService - High-level service integration
- AgentforceComponent - UI component rendering system