On this page

Messages

A good message turns a problem into a next step. How to write errors, warnings, success messages, empty states and confirmations.

It is 7 in the morning and 3 orders from last night did not reach the ERP. The person needs three things from the message: what failed, why, and what to do now. A message that gives all three gets the orders through before the shop opens.

Every error says what happened, why, and how to fix it.

Choose the message

Type Use it when Write
Error Something failed and the person has to act What happened, why, and how to fix it
Warning Something may go wrong if nothing changes What may happen, and how to prevent it
Success An action the person started has finished What finished, in the past tense
Information Something useful changed, and nothing needs doing The fact, in one sentence
Empty state A list or page has nothing to show yet What will appear here, and how to add the first item
Confirmation An action is hard or impossible to undo The action, what it affects, and that it can’t be undone

Errors

Write the three parts in this order. WCAG asks for the first and the third: say what went wrong in text (3.3.1), and suggest a fix when one is known (3.3.3).

  1. What happened, with the object and the number: “Couldn’t sync 3 orders to the ERP.”
  2. Why, in words the person understands: “The ERP rejected them because the customer is missing.”
  3. How to fix it, as an action: “Add a default customer in the connector settings, then sync again.”

Put the action in a button when the product can do it: “Retry”, “Reconnect ERP”, “Open settings”.

  • Don’t blame the person. “The file has no Order ID column”, not “You uploaded the wrong file”.
  • Don’t show only an error code. If a code helps support, put it last: “Reference: SYNC-4021.”
  • Say what the product kept. “Your other 21 orders synced.” People need to know what is safe.
  • Show the error next to its cause. A field error goes under the field. A sync error goes on the sync it belongs to.

Warnings

Say what will happen and when, then how to avoid it: “Access to your online store expires in 3 days. Reconnect the store to keep orders syncing.”

Success

Keep it short and in the past tense: “24 orders synced”, “Workflow saved”. Don’t add exclamation marks or words like “successfully”: the past tense already says it worked.

Empty states

Tell people what will appear and how to get there. Offer the first action as a button.

Situation Example
First use “No workflows yet. Create a workflow to sync orders between your stores.” Button: “Create workflow”
No search results “No orders match INV-2041. Check the number or clear the filters.”
Nothing to do “No failed syncs. Everything is up to date.”

Confirmations

Ask only before actions that are hard to undo, such as deleting or disconnecting. Asking too often teaches people to confirm without reading.

  • Title: a question with the action and the object: “Delete this workflow?”
  • Body: what else is affected, and that it can’t be undone: “Its schedule and sync history are deleted too. You can’t undo this.”
  • Buttons: repeat the verb, not “OK” or “Yes”: “Delete” and “Cancel”.