Build a Headless Experience
Agentforce SDK also supports a headless experience for Agentic Use Cases that do not require a chat style interaction. The headless experience can also be used to build your own UI entirely.
To send a message to the agent, you can use the sendUtterance method on the AgentConversation object.
To receive messages from the agent, you can subscribe to the messages publisher on the AgentConversation object.
A message is an instance of an AgentforceMessage which includes a message property containing the primary text response from the agent and components which may contain rich UI component definitions for the response.
- Customization: See Branding and Theming for visual customization