AIforce and Headless Toolkit34% of the exam

HXL widget building blocks and output rendering

What an HXL widget is made of (composition, configuration, schema), how a custom Lightning type and its renderer connect an action's structured output to a widget, and how HXL output rendering differs from an LWC override.

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

~6 min read · 12 practice questions

What the exam expects

  • Explain how HXL separates presentation (the widget) from business logic (the action that returns structured output).
  • Identify the role of each widget building block: composition, widget configuration and schema.
  • Describe how a custom Lightning type and its renderer connect action output to a widget, and where Output Rendering is selected.
  • Recognize what a composition can do: data bindings, formulas, conditional and repeated components, static resources.
  • Choose between an HXL widget renderer and an LWC override, and explain how a widget button's request is handled.
  • Key terms: widget (a platform-independent UI composition defined once in JSON); custom Lightning type (CLT) (represents structured output and connects it to a renderer); renderer.json (the CLT file that references the widget and maps properties to attributes); Output Rendering (the action-output setting that applies a CLT); subagent (formerly topic: a job an agent handles, with its own actions and reasoning instructions).

Key facts

Widget surfaces
Detail
Agentforce Employee agent in Lightning Experience; ChatGPT, Claude, Slackbot via MCP
Composition
Detail
Components, hierarchy, ordering and data bindings
Schema
Detail
Accepted attributes and their Lightning types; optional
Mapping
Detail
CLT renderer.json maps CLT properties to widget schema attributes
Output Rendering
Detail
Selecting the CLT on the action output applies its renderer
Action types
Detail
Flow, Apex, Prompt Template and others return structured output
Formulas
Detail
Computed values and conditionals inside the composition
Static resources
Detail
Must be reachable without authentication
Widget role in CLTs
Detail
Output only; not in editor.json
Sources for this section (4)
  • Why must every Image component in a widget include alternative text?
  • Which component organizes content into vertically stacked sections that expand?
  • When meta.forEach is used without forItem, which variable refers to the current item?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the AIforce Foundations pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 24 lessons of the AIforce Foundations guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (12 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the AIforce Foundations exam