Skip to content
MyAppBuilder
StableDataVersion 1

Chat

Overview

A messaging view with chat bubbles: the signed-in user's messages on the right, everyone else's on the left. Enter sends. Backed by a messages entity, like Comments.

Message bubbles; messages from the current user appear on the right.

When to use

  • Customer ↔ business messaging inside a portal
  • A team channel per project
  • Support chat on an order

When not to use

  • Formal threads with names and timestamps on every entry: use Comments
  • Live typing indicators and push delivery: messages refresh when the page loads or data changes, not in real time

Quick start

  1. Create a Messages entity with a text/long text body and a conversation link (e.g. order_id)
  2. Add Chat and bind Data to Messages where order_id equals Page parameter id
  3. Set Message field; leave Sender field empty to use Created by
  4. Preview as two different users to see left/right bubbles

Properties

Titletext (bindable)

Heading shown above the chat. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.

Example: Open jobs

Empty-state texttext

Message shown when the query returns no records (after filters, search and permissions). Tell people what to do next: “No jobs yet — add one with the button above”.

Default: No messages yet. Say hello!

Message fieldfield (long_text, text)

Text or Long text field holding each message.

Sender fieldfield

Decides which side a bubble appears on. With Created by (default), messages created by the signed-in account are “mine”; with a text field, the name/email is compared with the current user.

Input placeholdertext

Hint in the message box.

Default: Type a message…

Data binding

An entity query; 50 newest messages load with “Load earlier messages”. New messages copy the query's equals filters (conversation id, user) so they land in the right conversation. Enter sends; Shift+Enter adds a line.

Properties that can use dynamic data: Title, data.

Events

On submit
Declared but not triggered today: sending saves the record and refreshes the thread. React to new messages with a workflow on the messages entity.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Responsive behavior

Bubbles wrap to 78% of the width; the composer is a single line that grows.

Permissions

Create rights are needed to send; record-level rules on the messages entity keep conversations private (e.g. customer sees messages where order.customer_id = Current user).

Accessibility

  • Messages are grouped per sender within 5 minutes; timestamps show on hover and at the end of each group

Examples

Order chat on the customer portal

Example
Page: /orders/:id (requires sign-in)
Source: Messages where order_id equals Page parameter id
Message field: body · Sender field: (empty → Created by)
Staff see the same page with role Staff; messages they send appear on the customer's left

Common patterns

  • Workflow: on new message, Send Email to the other party
  • KPI “Unanswered conversations” using a status field set by workflows

Limitations

  • No real-time push; the thread updates when data refreshes
  • No read receipts, attachments or reactions

Troubleshooting

All bubbles are on the left

Why: The viewer is not signed in, or the Sender field does not match the user's name/email

Fix: Sign in (or pick a user in Preview); prefer Created by as the Sender field

Related

Was this helpful?