Custom initial messages

Set the greeting a visitor sees when they open the chat, in the dashboard or with the API, and learn how it differs from suggested messages.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Initial messages are the first things the agent says when a visitor opens the chat window. A good greeting tells people what the agent can help with and saves them from staring at an empty box. Use this page to write them, set them and check how they look.

Set them in the dashboard

  1. Open your agent and go to Channels > Website widget.
  2. Open the Messages section.
  3. Under Initial messages, select Add message and type the text.
  4. Add up to a few short messages. Drag to reorder them.
  5. Select Save.

You should see the greeting the next time the chat window opens on your site. Each message appears as its own bubble, in the order you listed them.

Set them with the API

The same list is the settings.initialMessages array of the agent. Update it with Update an agent:

curl -X PATCH https://api.askocto.co/v2/agents/agt_123 \
  -H "Authorization: Bearer $OCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "settings": {
      "initialMessages": [
        "Hi, I am the support assistant for Northwind Outfitters.",
        "Ask me about orders, returns or sizing."
      ]
    }
  }'

Northwind Outfitters is a made-up shop used for the example. The call replaces the whole array, so send every message you want to keep.

Write a good greeting

  • Say who is talking. If the agent is an AI, a line that says so also supports your AI disclosure settings.
  • Name two or three things it can do. Customers then ask for those things.
  • Keep each message to one or two short sentences.
  • Match the voice you set under Build > Behavior.

Initial, suggested and floating messages

Kind Where the visitor sees it Purpose
Initial messages Inside the open chat window, from the agent Greet and set expectations.
Suggested messages Tappable options under the greeting Offer common questions in one tap. See Suggested messages.
Floating messages Next to the closed bubble Invite a visitor to open the chat. See Floating initial messages.

Note: Initial messages are fixed text that you write. The agent does not generate them, so they read the same for every visitor.

Try the greeting in the Playground before you publish.

Something unclear or missing? Tell us and we will fix the page.