# Embed examples Detailed examples for configuring the Agentforce Conversation Client. All examples use the `AgentforceConversationClient` React component; the underlying `embedAgentforceClient` API accepts the same `agentforceClientConfig` shape. --- ## Floating mode (default) A floating chat widget appears in the bottom-right corner. It starts minimized and expands when the user clicks it. This is the default — no `renderingConfig` is required. ### Minimal (no config) ```tsx ``` ### Explicit floating ```tsx ``` ### Floating with a specific agent and theme ```tsx ``` --- ## Inline mode The chat renders inside the parent container at a specific size. Use this when the chat should be part of the page layout rather than an overlay. ### Fixed pixel dimensions ```tsx ``` ### CSS string dimensions ```tsx ``` ### Inline filling a sidebar ```tsx
{/* App content */}
``` --- ## Theming Use `styleTokens` to customize colors. Tokens are passed directly to the Agentforce client. ### Brand-colored header ```tsx ``` ### Full theme example ```tsx ``` ### Dark theme example ```tsx ``` --- ## Agent selection Use `agentId` to load a specific agent from the org. If omitted, the org's default employee agent is used. ### Specific agent by ID ```tsx ``` ### Agent with inline mode and theming ```tsx ``` --- ## Using the low-level `embedAgentforceClient` API The React component wraps `embedAgentforceClient`. If you need the raw API (e.g. in a non-React context), the config shape is the same: ```ts import { embedAgentforceClient } from "@salesforce/agentforce-conversation-client"; const { loApp, chatClientComponent } = embedAgentforceClient({ container: "#agentforce-container", salesforceOrigin: "https://myorg.my.salesforce.com", agentforceClientConfig: { agentId: "0Xx000000000000", renderingConfig: { mode: "floating" }, styleTokens: { headerBlockBackground: "#0176d3", headerBlockTextColor: "#ffffff", }, }, }); ```