Loading...
Loading...
MUST activate when the project contains a uiBundles/*/src/ directory and the task involves adding or modifying a chat widget, chatbot, or conversational AI. Use this skill when the user asks to add, embed, integrate, configure, style, or remove an agent, chatbot, chat widget, conversation client, or AI assistant. Covers styling (colors, fonts, spacing, borders), layout (inline vs floating, width, height, dimensions), and props (agentId, agentLabel, headerEnabled, showHeaderIcon, showAvatar, styleTokens). Activate when files under uiBundles/*/src/ import AgentforceConversationClient or when adding any chat or agent functionality to a page. Never create a custom agent, chatbot, or chat widget component.
npx skill4agent add forcedotcom/afv-library implementing-ui-bundle-agentforce-conversation-client<AgentforceConversationClient />@salesforce/ui-bundle-template-feature-react-agentforce-conversation-clientlocalhost:<PORT>localhost:3000grep -r "AgentforceConversationClient" --include="*.tsx" --include="*.jsx" --exclude-dir=node_modulesAgentforceConversationClient.tsxAgentforceConversationClient.jsxagentId^0Xx[a-zA-Z0-9]{15}$0XxagentId^0Xx[a-zA-Z0-9]{15}$agentId^0Xx[a-zA-Z0-9]{15}$"0Xx...""Placeholder""YOUR_AGENT_ID""<USER_AGENT_ID_18_CHAR_0Xx...>"^0Xx[a-zA-Z0-9]{15}$import { AgentforceConversationClient } from "@salesforce/ui-bundle-template-feature-react-agentforce-conversation-client";npm install @salesforce/ui-bundle-template-feature-react-agentforce-conversation-client./components/AgentforceConversationClientimport { AgentforceConversationClient } from "@salesforce/ui-bundle-template-feature-react-agentforce-conversation-client";<AgentforceConversationClient />agentId<AgentforceConversationClient agentId="0Xx8X00000001AbCDE" /><AgentforceConversationClient ... />agentId// Before
<AgentforceConversationClient agentId="Placeholder" />
// After
<AgentforceConversationClient agentId="0Xx8X00000001AbCDE" />agentIdagentIdinlinetruewidth420"100%"height600"80vh"headerEnabledstyleTokenssalesforceOriginfrontdoorUrlagentLabel<AgentforceConversationClient agentId="0Xx..." /><AgentforceConversationClient agentId="0Xx..." inline width="420px" height="600px" /><AgentforceConversationClient agentId="0Xx..." agentLabel="<dummy-agent-label>" />styleTokensstyleclassName| Token name | UI area themed |
|---|---|
| FAB button background color |
| Chat container background |
| Header background |
| Chat container width |
| Chat border radius |
| Layout max width |
| Token name | UI area themed |
|---|---|
| Header block background |
| Header border bottom width |
| Header border bottom style |
| Header border bottom color |
| Header corner radius |
| Header block padding (vertical) |
| Header inline padding (horizontal) |
| Header minimum height |
| Header branding area gap |
| Header font family |
| Header title font weight |
| Header title font size |
| Header title line height |
| Header text color |
| Header icon display |
| Header icon margin |
| Header icon color |
| Header icon width |
| Header icon height |
| Header logo max height |
| Header logo max width |
| Header logo min width |
| Header action button height |
| Header action button width |
| Header action button padding |
| Header action button border radius |
| Header hover background |
| Header active background |
| Header focus border |
| Token name | UI area themed |
|---|---|
| Welcome text container width |
| Welcome block font family |
| Welcome block font size |
| Welcome block font weight |
| Welcome block line height |
| Welcome block letter spacing |
| Welcome block text color |
| Welcome block vertical padding |
| Welcome block horizontal padding |
| Welcome text animation duration |
| Token name | UI area themed |
|---|---|
| Message block border radius |
| Avatar display property (e.g. |
| Message actions display (e.g. |
| Copy action button display (e.g. |
| Message block container padding |
| Message block font size |
| Message block background (base) |
| Inbound message border |
| Outbound message border |
| Message block body width |
| Message block padding |
| Message block container top margin |
| Message block line height |
renderingConfig.showAvatarshowAvatar: trueshowAvatar: false| Token name | UI area themed |
|---|---|
| Inbound message text color (base) |
| Inbound message border radius |
| Inbound message background |
| Inbound message text color |
| Inbound message width |
| Inbound message text alignment |
| Inbound message hover background |
| Token name | UI area themed |
|---|---|
| Outbound message border radius |
| Outbound message background |
| Outbound message text color |
| Outbound message width |
| Outbound message left margin |
| Outbound message text alignment |
| Token name | UI area themed |
|---|---|
| Message input container padding |
| Message input footer border color |
| Message input border radius |
| Message input border transition duration |
| Message input border transition easing |
| Message input text color |
| Message input text background color |
| Message input footer focus border color |
| Message input focus shadow |
| Message input max height |
| Message input line height |
| Message input text padding |
| Message input font weight |
| Message input font size |
| Message input overflow Y |
| Message input scrollbar width |
| Message input scrollbar color |
| Message input actions width |
| Message input actions right padding |
| Message input placeholder text color |
| Placeholder font weight |
| Message input error text color |
| Message input actions gap |
| Message input actions padding |
| Message input action button size |
| Message input action button radius |
| Message input send button color |
| Message input send button disabled color |
| Message input action button focus border |
| Message input action button active icon color |
| Message input action button active background |
| Message input send button icon color |
| Message input send button hover color |
| Message input action button hover shadow |
| Message input file preview padding |
| Message input textarea max height |
| Message input textarea max height (with image) |
| Token name | UI area themed |
|---|---|
| Error block background color |
<AgentforceConversationClient
agentId="0Xx..."
styleTokens={{
headerBlockBackground: "#0176d3",
headerBlockTextColor: "#ffffff",
messageBlockInboundBackgroundColor: "#4CAF50",
}}
/>references/examples.mdreferences/constraints.mdreferences/troubleshooting.md