# Building, testing and delivering HXL widgets across clients

*AIforce Foundations Study Guide · AIforce and Headless Toolkit · Last updated December 2, 2026 · https://www.certifyforce.com/study-guide/aiforce-foundations/aiforce-and-headless-toolkit/building-testing-and-delivering-hxl-widgets-across-clients*

How one HXL widget reaches Agentforce, Claude, ChatGPT and Slackbot through a custom Salesforce MCP server while Salesforce permissions still apply, how teams design widgets in HXL Playground or generate them with Agentforce Vibes, and how to test the result in Agentforce and on each client.

- Certification: Salesforce AIforce Foundations
- Exam section: AIforce and Headless Toolkit
- Study guide: https://www.certifyforce.com/study-guide/aiforce-foundations

**Official exam objective:**

> Identify how the Headless Experience Layer (HXL) enables Salesforce experiences across supported external AI interfaces.

## What the exam expects

- Explain how one HXL widget renders natively on Agentforce and on supported external AI clients, and what stays the same everywhere (permissions, sharing, business rules).
- Identify the delivery path to Claude, ChatGPT and Slackbot, including the client-specific connection and the Block Kit exception.
- Choose between HXL Playground and Agentforce Vibes for designing or generating a widget, and know what each does not do.
- Describe how to test a widget in Agentforce and on an external client, and what to expect after updating a widget.
- Key terms: **surface** (the application and UI area where an agent operates, also called a channel); **MCP client** (the external agent, such as Claude, that connects to the org); **custom Salesforce MCP server** (an admin-built server whose tools can carry a widget); **HXL Playground** (a browser-based tool for building and previewing widgets); **Agentforce Vibes** (Salesforce's AI coding assistant, which can generate widget files).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Write once | One widget deploys to Agentforce, ChatGPT, Claude and Slackbot | [Get Started with HXL](https://developer.salesforce.com/docs/platform/hxl/guide/get-started.html) |
| Security | Every surface inherits Salesforce permissions and sharing | [Get Started with HXL](https://developer.salesforce.com/docs/platform/hxl/guide/get-started.html) |
| MCP delivery | Needs a custom MCP server with the widget's tool and resource | [Use HXL Widgets with MCP Agents](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-channels.html) |
| Client connection | Steps differ by client; Slackbot adds the server in Slack | [Connect Your MCP Client](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-setup-client.html) |
| Block Kit for Slackbot | HXL widgets don't currently render on that path | [Connect Your MCP Client](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-setup-client.html) |
| HXL Playground | Browser tool for composing and previewing with mock data | [Get Started with HXL](https://developer.salesforce.com/docs/platform/hxl/guide/get-started.html) |
| Developer preview components | Early access; APIs can change; use a sandbox org | [HXL Components](https://developer.salesforce.com/docs/platform/hxl/references/hxl-reference-about/about-hxl-components.html) |
| Vibes scope | Generates and refines bundles; doesn't build the MCP server | [Agentforce Vibes for HXL](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-vibes.html) |
| After an update | A client that already rendered the widget can lag | [Connect Your MCP Client](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-setup-client.html) |

## Check yourself

- Why can an HXL widget work in an agent beyond the clients Salesforce names?
- Why does Salesforce document the manual MCP steps even though Agentforce Vibes can do many of them?
- When a Playground component is badged Coming soon, where can a team use it?

## Sources

- [Get Started with Headless Experience Layer](https://developer.salesforce.com/docs/platform/hxl/guide/get-started.html)
- [Use HXL Widgets with Agents That Support MCP](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-channels.html)
- [Create a Custom Salesforce MCP Server](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-server.html)
- [Connect Your MCP Client to Your Org](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-mcp-setup-client.html)
- [Build Rich UI Experiences with HXL Widgets](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-rich-ui.html)
- [Explore Widgets in HXL Playground](https://developer.salesforce.com/docs/platform/hxl/guide/playground.html)
- [HXL Components (Playground)](https://developer.salesforce.com/docs/platform/hxl/guide/playground-components.html)
- [Create Widgets in HXL Playground](https://developer.salesforce.com/docs/platform/hxl/guide/playground-widgets.html)
- [HXL Components](https://developer.salesforce.com/docs/platform/hxl/references/hxl-reference-about/about-hxl-components.html)
- [Use Agentforce Vibes to Build HXL Widgets](https://developer.salesforce.com/docs/platform/hxl/guide/hxl-vibes.html)
- [Use HXL Widgets as Agentforce Action Output](https://developer.salesforce.com/docs/platform/hxl/guide/agentforce-action-output.html)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit and reading progress are included in the full study guide. The separate practice exams option includes the reviewed question bank and timed mock exams. The bundle includes both where available. See [current options and prices](https://www.certifyforce.com/pricing).
