System Account

(Updated on 2022-06-01) Please note that this document is outdated and no longer maintained. For an up-to-date introduction to system accounts, please visit the SeaTalk Open Platform official documentation website here.

1. Definition

Provide a method for you to automatically send messages to group chats based on Webhook protocol.

System accounts can only be used in group chats.

2. Create a System Account

Go to the group where you want to create a System Account, open the group chat setting, find System Accounts, and click Add System Account.

NoticeBotUI

Note:

  1. You can create up to 15 system accounts in each group.
  2. Currently, only Seatalk Desktop supports the creation of system accounts.
  3. Group owner can add account admins to allow them to create system accounts in the group.

3. Configure a System Account

System Accounts need to be configured after being added. You will be given a unique webhook similar to the example below:

Use the webhook by sending an HTTP POST request to webhook URL as the below example:

3.1 Message Type and Data Format

Text Message

The System Account use the following body format (JSON) to send a text message:

ParameterRequiredDescription
tagtrueMessage type. Fixed to text to send a text message.
contenttrueText content. The longest does not exceed 4096 bytes. UTF8 encoding format.
mentioned_listfalseList of SeaTalk IDs (string: should be group member). Mention certain group members corresponding to SeaTalk IDs (@ xxx)
mentioned_email_listfalseList of Emails (string: should be group member). Mention certain group members corresponding to SeaTalk registered emails (@ xxx)
at_allfalseIf at_all = true, the message will @all group members

Image Message

The System Account use the following body format (JSON) to send a image message:

ParameterRequiredDescription
tagtrueMessage type. Use image to send a image message.
contenttrueBase64-encoded image file (smaller than 5MB after encoding). For now, only PNG, JPG and GIF images are supported.

 

Example in Python Language (Sending Image Message)

 

3.2 Message Example

Text Message

NoticeBotMessage

Image Message

image-message

 

3.3 Message Sending Frequency Limit

Each System Account can send at most 60 messages per minute.

Note:

  1. The excessive part will fail to be sent.
  2. Then the System Account will enter a 10-minute silence period. After 10 minutes, it can continue to send messages.

3.4 Error Message List

Error CodeError Message
1Invalid Webhook URL.
2It's not active.
3Message exceeds maximum length.
4Message cannot be empty .
5Image file exceeds the maximum size limit.

4. Delete a System Account

Go to group chat settings - System Accounts, click on an existing system account and then click Delete System Account in the lower left corner.

NoticeBotRemove