Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Messaging Components entry
How-to guide

How to build and send a Messaging Component

Build a reusable Interactive Messaging Component in the Messaging Component Builder, then send it from an agent conversation, a flow, or a bot in your enhanced channels. The example below creates a Question with static options, the type most teams start with.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated Jun 16, 2026

Build a reusable Interactive Messaging Component in the Messaging Component Builder, then send it from an agent conversation, a flow, or a bot in your enhanced channels. The example below creates a Question with static options, the type most teams start with.

  1. Open the Messaging Component Builder

    In Setup, find the Messaging Components area and create a new component. Give it a clear name you will recognize when an agent, flow, or bot references it later.

  2. Choose the component type

    Select a type such as a Question with static options. Use the formats reference to confirm the type is supported on the enhanced channels you plan to use before you go further.

  3. Fill in the fields and any dynamic content

    Use the properties panel on the right to set the prompt text and the choices. For fields of type Template, write a formula template that references the Messaging Session or Messaging End User so the message personalizes at send time.

  4. Test in an Enhanced Chat session

    Run the component in a test Enhanced Chat session to see the rendering. Repeat the check on each other channel you support, since the same component looks different per channel.

  5. Save and reference it

    Save the component, then point an agent quick action, a flow, an auto-response, or an Einstein Bot dialogue at it so it can be sent in real conversations.

Component namerequired

The internal label used to find and reference the component from agents, flows, and bots.

Component typerequired

The kind of component, for example a Question, Time Selector, Secure Form, or Enhanced Link, which determines the format and channel support.

Component contentrequired

The prompt, options, or fields the customer sees. Static values are set here directly; dynamic values use a Template field with a formula template.

Gotchas
  • Not every component type is supported on every channel. Check the Messaging Component Types and Formats page before committing a component to a channel.
  • Dynamic options are only as good as the data behind them. Scope the source so the customer sees a usable number of choices, not hundreds.
  • Formula templates support only documented functions. Test that the template resolves in an Enhanced Chat session instead of assuming the syntax is valid.
  • An Enhanced WhatsApp component that uses an External Template depends on a WhatsApp-approved template, so it cannot be edited freely after approval.

See the full Messaging Components entry

Messaging Components includes the definition, worked example, deep dive, related terms, and a quiz.