Copy Code Button
6 min
Introduction
This command allows you to send an image with a button that copies a predefined code directly to the user’s clipboard. It is useful for sharing access codes, promo codes, or identifiers that the user can reuse quickly without typing.

Copy code preview
Command Syntax
#ButtonMix|Title|Subtitle|image*IMAGE_URL|copy*ButtonText*CodeValue
How it works
- #ButtonMix → Defines the message type (multimedia with buttons).
- Title → Main text displayed above the image.
- Subtitle → Secondary text displayed below the title.
- image*IMAGE_URL → Link to the image file in .jpg format (file size depends on CRM, commonly up to 5 MB).
- copyButtonTextCodeValue → Defines the copy-to-clipboard button:
- ButtonText → The text displayed on the button (e.g., Copy Code).
- CodeValue → The exact code or string that will be copied to the user’s clipboard.
Example
#ButtonMix|Title|Subtitle|image*https://wisphub.io/static/img/wisp-bg-5.jpg|copy*Copy Code*000011
Result
- The user receives a message with an image, a title, subtitle, and a Copy Code button.
- When the user clicks the button, the predefined code (000011 in this example) is automatically copied to their clipboard.
- A confirmation message is shown (e.g., The code has been copied).
⚠️ Important Notes
- The image must be in .jpgformat. Maximum file size depends on your CRM (commonly 5 MB).
- Highlevel CRM Integration
- Use short and clear button text (e.g., Copy Code, Get Promo).
- Make sure the code value is correct and final, since users will copy it exactly as provided.
- This button type does not send a response ID to the CRM, as it only performs a copy action.