mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-08 00:10:29 +08:00
- Move .template-versions.json from skills/ to root - Shorten skill names to meet 64-char limit: - salesforce-webapp-feature-micro-frontend-generating-micro-frontend-lwc → salesforce-webapp-micro-frontend-lwc - salesforce-webapp-feature-react-agentforce-conversation-client-integrating-agentforce-conversation-client → salesforce-webapp-agentforce-conversation-client - salesforce-webapp-feature-react-file-upload-implementing-file-upload → salesforce-webapp-react-file-upload - Expand descriptions to meet 20-word minimum with trigger context
1.2 KiB
1.2 KiB
Troubleshooting
Common issues when using the Agentforce Conversation Client.
Component throws "requires agentId"
Cause: agentId was not passed.
Solution: Pass agentId directly as a flat prop:
<AgentforceConversationClient agentId="0Xx000000000000AAA" />
Chat widget does not appear
Cause: Invalid agentId or inactive agent.
Solution:
- Confirm the id is correct (18-char Salesforce id, starts with
0Xx). - Ensure the agent is Active in Setup → Agents.
- Verify the agent is deployed to the target channel.
Authentication error on localhost
Cause: localhost:<PORT> is not trusted for inline frames.
Solution:
- Go to Setup → Session Settings → Trusted Domains for Inline Frames.
- Add
localhost:<PORT>(example:localhost:3000). - Restart the dev server.
Blank iframe / auth session issues
Cause: First-party Salesforce cookie restriction is enabled.
Solution:
- Go to Setup → Session Settings.
- Find Require first party use of Salesforce cookies.
- Disable it.
- Save and reload.
Multiple chat widgets appear
Cause: Component rendered more than once.
Solution: Render one instance in app layout only.