SMSBAT Developer Tools

Essential tools for SMSBAT API development, testing, and integration

Viber Template Builder

Create and validate Viber message templates according to Viber Business policy

Viber Template Guidelines

Viber Business allows sending messages only through pre-approved templates. Templates must comply with specific guidelines and undergo approval process.

Template Statuses

Templates go through different approval stages:

  • New template submitted for review: New template submitted for review
  • Template approved and ready to use: Template approved and ready to use
  • Template under review: Template under review
  • Template rejected, needs revision: Template rejected, needs revision
  • Template submission cancelled: Template submission cancelled

Allowed Message Types

Viber Business allows the following types of transactional messages:

  • Reminders about scheduled events (e.g., appointments)
  • Notifications/warnings about service performance (service unavailable, performance issues, etc.)
  • Login/logout/login attempt warnings
  • Information about schedules/class schedules, current and final assessments, internal orders/homework sent by educational institutions/leisure centers
  • Debt reminders (including contract/agreement details)
  • Information about debt repayment terms and conditions
  • Information about accumulation/spending/terms of use/purchase of loyalty program coupons

Forbidden Content

The following content is not allowed in Viber Business templates:

  1. Templates that do not correspond to any of the above service template types
  2. Service templates containing any additional promotional information
  3. Triggers for product/service purchase offers
  4. Triggers for increasing service loyalty (holiday greetings, service rating offers)
  5. Templates containing information from companies that do not provide the service

Template approval typically takes 1-3 business days.

Variable Patterns

Use these regex patterns for dynamic content in templates:

PatternMeaningTemplate ExampleMessage Example
\w+Any character - letters and numbersHello \w+ your current balance is \w+Hello Alina, your current balance is 4000
\S+Any character except spaceHello \S+ your current balance is \S+Hello Alina, your current balance is 4000
\d+Digits 0-9Hello \S+ your current balance is \d+Hello Alina, your current balance is 4000
(\S+ )*\S+From 0 to infinity words, with space between themHello (\S+ )*\S+ your current balance is \d+Hello, your current balance is 4000
\d+Number of allowed characters (1-15)Hello (\S+ )*\S+ your current balance is \d+Hello Miss Alina, your current balance is 4000

Template Cleaning Rules

Templates are automatically cleaned before submission:

Important: All templates are cleaned automatically.

The following symbols are removed:

Special characters, emojis, and formatting symbols

Only plain text and approved regex patterns are allowed.

Template Examples

Appointment Reminder

Повідомлення:

Hello John, your appointment is scheduled for tomorrow at 10:00 AM. Please arrive 15 minutes early.

Шаблон:

Hello \\S+, your appointment is scheduled for tomorrow at \\d+:\\d+ \\S+. Please arrive \\d+ minutes early.
Service Notification

Повідомлення:

Service maintenance scheduled for tonight from 11 PM to 2 AM. We apologize for any inconvenience.

Шаблон:

Service maintenance scheduled for \\S+ from \\d+ \\S+ to \\d+ \\S+. We apologize for any inconvenience.
Login Alert

Повідомлення:

New login detected from iPhone at 3:45 PM. If this wasn't you, please contact support.

Шаблон:

New login detected from \\S+ at \\d+:\\d+ \\S+. If this wasn't you, please contact support.

Validation Rules

Templates must follow these validation rules:

  • Templates cannot start with flags like '/' or '/ui'
  • Templates cannot start or end with spaces
  • Templates cannot contain double spaces anywhere
  • Templates cannot contain line breaks
  • Using '%' in templates is incorrect - use '\w+' or '\S+' or '\d+' instead

Maximum template length: 1000 characters

All templates are validated against Viber Business policies before submission.

Use regex patterns like \\S+, \\d+, \\w+ for dynamic content

Phone Number Validator

Validate phone numbers in international E.164 format

JSON Formatter

Format and validate JSON for API requests