# SSTI_SERV_EVENT_BOX_CUSTOM_BUTTON (SSTI API Event)

Tenant has clicked on custom menu button in box pop-up menu.

## Variables

The following table shows input values (you send them with the API call) and returned output values.

| Variable |     | Required | Description |
|----------|-----|----------|-------------|
| *link_message* parameters: |     |          |             |
|          | num |          | SSTI_SERV_EVENT_CLOUD |
|          | str |          | button text |
|          | id  |          | avatar UUID |

## Comments

The custom menu button appears here:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/9228622b-bd16-48c2-9157-8ab3690fcbb5/SSTI_box_with_menu.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=ce99a738085946fd3e4bc061b00d900c2ec5ab6880f2d0022134a2d973d646d7&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =348x182")

The button text can be set by using SSTI_API_BOX_CUSTOM_BUTTON command.

**Important:** the custom button will be removed on every SSTI server restart. Thus, you need to hook to [SSTI_SERV_EVENT_INITIALIZED](/doc/45ce557b-3520-453e-8f21-3bf6deb1596f) event to set the menu button properly (see the example).

## Example

This code sets the custom button:


:::warning
Code sample missing: the old wiki failed to render this code block, so it was not in the source. Restore it from the original source.

:::


:::warning
Code sample missing: the old wiki failed to render this code block, so it was not in the source. Restore it from the original source.

:::

The resulting menu:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/9228622b-bd16-48c2-9157-8ab3690fcbb5/SSTI_box_with_menu.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=ce99a738085946fd3e4bc061b00d900c2ec5ab6880f2d0022134a2d973d646d7&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =348x182")