Skip to main content

Campaigns

1. What This Page Is For​

The Campaigns page (/crm/campaigns) is used to create, configure, and manage group CRM follow-up campaigns. It allows team leaders and administrators to schedule campaign periods, set recovered amount and task count targets for staff and players, define rules to automatically pull matching players into follow-up pools, and connect Telegram notification bots. For the legacy Automation Settings menu (/crm/settings), the system automatically redirects here.


2. Before You Start​

  • Required Permissions:
    • You must have the 'CRM campaigns' (crm_rule) or 'CRM head' (crm_head) permission granted by an administrator to create, view, edit, and delete campaigns.
    • If you only have view permissions, you can browse the campaign table and view condition details, but you will not see the create or edit buttons.
  • Things to Prepare:
    • Telegram Bot Token: If you want to enable Telegram alerts, prepare the bot token obtained from @BotFather.
    • Telegram Room ID (Chat ID): The group or channel ID (for example, -100123456789) so alerts reach the right chat room.
    • Determine your campaign start and end dates, as well as the player criteria you want to target.

3. Screen Layout​

When you open this page, you will see the following key areas:

  1. Header: Displays the page title CRM Campaign Management, subtitle description, and main action buttons: Telegram Integration and Create Campaign.
  2. Search & Filters: Located below the header, featuring the campaign search box, Search button, Advanced filter toggle, and active filter chips.
  3. Table Toolbar: Displays the total campaign count found and a Refresh button (circular arrow).
  4. Campaign Data Table: Lists all campaigns with their creation date, player conditions, duration, status badge, targets, and action buttons.
  5. Pagination Bar: Located at the bottom of the table to switch pages and select the number of rows per page (10, 20, 50, 100 rows).

4. Search and Filters​

Field / FilterTypeHow to UseResult
Search campaign name...Text inputType a campaign name and click Search or press EnterFilters the table to show matching campaigns
AdvancedButtonClick Advanced to expand or collapse additional filter fieldsOpens the status filter panel
StatusDropdownChoose from: All Statuses, Active, Scheduled, Draft, Completed, or CancelledFilters campaigns by the selected status
Clear allButtonClick Clear all or click the X on active filter chipsResets the search term and status back to defaults
RefreshIcon buttonClick the circular arrow icon above the tableInstantly reloads the latest campaign data

5. Data Table​

All Columns in the Table​

ColumnWhat You SeeMeaningColor Badges / Icons
Created AtDate, time, and creator name, e.g. Oct 21, 2026 14:30:00 by admin1When the campaign was created and by whomGray text with creator name
Campaign NameCampaign title text, e.g. Winback Campaign 10.10The name of the campaignBold text
ConditionView Conditions button with eye iconThe qualification rules used to select playersClick to open detailed condition modal
PeriodStart date – End date, e.g. Oct 1, 2026 - Oct 31, 2026The active date range of the campaignGray text
StatusStatus badgeCurrent operational state of the campaign5 basic colors: Green (Active), Blue (Scheduled), Gray (Draft), Purple (Completed), Red (Cancelled)
GoalsStaff and player target figures, e.g. Staff: ฿500,000 (50 bills) / Player: ฿1,000 / ฿5,000Recovery and bill targets for staff versus deposit and turnover targets for playersBlack/white text
Waiting (in task view)Number of players, e.g. 150 playersQualified players waiting to be assigned to staffOrange badge
Assigned (in task view)Number of players, e.g. 80 playersPlayers already assigned to staff membersBlack/white text
ActionsAction buttons at the end of each rowCommands to manage that campaignSee action buttons table below

Action Buttons in Each Row​

ButtonIcon / ColorWhat Happens When PressedConditions / Notes
Favorite starStar icon / YellowPins the campaign to the top of the tableClick again to unpin
View AssignmentsEye icon / GrayNavigates to Task Assignments (/crm/tasks/[campaignId]) for this campaignAvailable for all campaigns
EditPencil icon / BlueOpens the modal to modify campaign details, goals, and rulesCannot be edited once status is Completed or Cancelled
DeleteTrash icon / RedOpens the confirmation dialog to permanently delete the campaignOnly campaigns in 'Draft' or 'Cancelled' status can be deleted. Active or scheduled campaigns have this button disabled

6. Step-by-Step Guide​

1. Creating a New Campaign​

  1. Go to Follow-up > Campaigns in the left sidebar menu.
  2. Click the Create Campaign button in the top-right corner.
  3. In the modal dialog that opens, fill in all 4 sections according to the table in Section 7:
    • Section 1: Enter the campaign name, select start and end dates, set the initial status, and select assigned staff.
    • Section 2: Enter the target recovered amount (Baht) and target recovered players count (cases/bills) for staff.
    • Section 3: Enter the target deposit (Baht) and target turnover (Baht) for individual players.
    • Section 4: Enable at least one player qualification rule (such as inactivity days or new lead registration).
  4. Review your inputs and click Save Campaign.
  5. A green success message will appear and the new campaign will display in the table.

2. Editing a Campaign​

  1. Find the campaign you want to edit in the table.
  2. Click the pencil icon (Edit) in that campaign's row.
  3. Update the desired settings in the modal dialog.
  4. Click Save Campaign.

3. Deleting a Campaign​

  1. If the campaign is currently active, click edit first to switch its status to Draft or Cancelled, then save.
  2. Click the trash icon (Delete) in that campaign's row.
  3. In the confirmation dialog, click the red Delete button.
  4. The campaign is permanently removed from the system.

4. Connecting a Telegram Bot for Alerts​

  1. Click the Telegram Integration button in the top-right corner above the table.
  2. In the dialog, enter your Telegram bot token obtained from @BotFather.
  3. Click Save Token (or Replace Token if updating).
  4. When creating or editing a campaign, enter your Telegram chat group ID (e.g. -100123456789) in the Telegram Room ID field and switch on Campaign notifications.

7. Edit or Add Form​

The campaign configuration modal (CrmCampaignModal) is divided into 4 main sections:

Section 1: Basic Campaign Details​

FieldRequired?What to EnterExampleConstraints
Campaign NameRequiredName of the campaignWinback Campaign 10.10Cannot be empty
Campaign DurationRequiredStart date and end date2026-10-01 to 2026-10-31End date must be after start date
Campaign StatusOptionalInitial operational stateActiveOptions: Active, Scheduled, Draft, Completed, Cancelled (Default: Active)
Assigned StaffOptionalStaff members assigned to handle this campaignSelect all or check specific staffIf left unselected, all team members can handle tasks
Telegram Room IDOptionalTelegram chat group ID-100123456789Must include minus sign for groups
Campaign notificationsOptionalToggle switchOn (Green)Requires bot token to be configured first
Auto-assign matching playersOptionalToggle switchOn (Green)Automatically distributes qualified players to staff
Welcome SLA (hours)OptionalRequired turnaround time in hours24Positive whole number

Section 2: Staff Goals​

FieldRequired?What to EnterExampleConstraints
Target Recovered Amount (฿)RequiredTarget total deposit recovered by staff500000Number greater than 0
Target Recovered Players CountRequiredTarget number of players recovered50Positive whole number greater than 0

Section 3: Player Goals​

FieldRequired?What to EnterExampleConstraints
Target Player Deposit (฿)RequiredExpected deposit amount per player1000Number greater than 0
Target Player Turnover (฿)RequiredExpected turnover amount per player5000Number greater than 0

Section 4: Automatic Player Pool Rules (At least 1 required)​

Field / RuleRequired?What to EnterExampleConstraints
Disappearing Days (Inactivity)Can enableTurn on toggle and click + Add Range to define days without deposit14 - 30 days, > 60 daysEnd days must be greater than start days; ranges must not overlap
New Lead (No deposit yet)Can enableTurn on toggle and set duration in minutes or days30 minutes or 3 daysMinutes must be at least 5; days at least 1
Has Deposit HistoryCan enableTurn on toggle to target only players who deposited beforeOnCannot be enabled together with New Lead
Min Deposit TimesCan enableMinimum prior deposit count required3Integer starting from 1
VIP Min Deposit Amount (฿)Can enableMinimum accumulated deposit amount50000Number greater than 0
VIP Min Deposit BillsCan enableMinimum accumulated deposit bills10Whole number greater than 0
Selected RanksCan enableSelect member VIP tier ranksVIP 1, VIP 2Must select at least 1 rank
Registration Affiliate CodeCan enableSpecific affiliate referral codeAFF888Cannot be empty if enabled
Promotions ReceivedCan enableMinimum promotions received count1Whole number starting from 1
Min Win Amount (฿)Can enableMinimum win amount during campaign10000Number 0 or greater
Min Loss Amount (฿)Can enableMinimum loss amount during campaign5000Number 0 or greater
Min Total Turnover (฿)Can enableMinimum total turnover during campaign20000Number 0 or greater
Consecutive Playing DaysCan enableMin and max consecutive active days3 - 7 daysMin must be at least 1; max must be >= min

8. Popups and Modals​

1. Create / Edit Campaign Modal (CrmCampaignModal)​

  • Triggered by: Clicking Create Campaign in the header or the pencil icon (Edit) in the table.
  • What is inside: 4 form sections as detailed in Section 7, plus Cancel and Save Campaign buttons.
  • What to do: Fill in required fields, resolve any red error text, and click Save Campaign.
  • Result: Saves the campaign, closes the modal, and refreshes the table.

2. Campaign Condition Details Modal (CrmConditionModal)​

  • Triggered by: Clicking View Conditions in the Condition column.
  • What is inside: Summary of all active rules for that campaign, including inactivity ranges, new lead settings, deposit rules, staff/player targets, and Telegram rooms.
  • What to do: Review the qualification rules and click Close.
  • Result: Closes the modal without making changes.

3. Telegram Integration Dialog (CrmTelegramIntegrationDialog)​

  • Triggered by: Clicking Telegram Integration in the header.
  • What is inside: Bot token status banner, token password input, Cancel, and Save Token (or Replace Token).
  • What to do: Paste your bot token and click Save Token.
  • Result: Saves the shared Telegram token for alerts.

4. Delete Confirmation Dialog (ConfirmModal)​

  • Triggered by: Clicking the trash icon (Delete) in a campaign row.
  • What is inside: Warning prompt with the campaign name, Cancel, and red Delete button.
  • What to do: Confirm the campaign name and click Delete.
  • Result: The campaign is permanently deleted.

9. Statuses and Color Badges​

Status BadgeBadge ColorMeaningNext Action
Active (active)GreenCampaign is running, matching players, and distributing tasksCheck tasks on the Task Assignments page
Scheduled (scheduled)BlueCampaign is set to start on a future dateWait for the start date; system activates automatically
Draft (draft)GraySaved draft in preparation; no live effect on playersEdit and change status to Active when ready
Completed (completed)PurpleCampaign duration has endedHistorical read-only view; no new tasks or edits permitted
Cancelled (cancelled)RedCampaign has been stopped earlyCan be deleted if no longer needed

10. Frequently Asked Questions / Basic Troubleshooting​

  • If the delete button is disabled or grayed out:
    • Active or scheduled campaigns cannot be deleted directly. Edit the campaign first, change its status to Draft or Cancelled, save, and then click delete.
  • If zero players are pulled into the campaign:
    • Check whether you have enabled mutually conflicting conditions. For example, enabling New Lead (no deposit yet) alongside Has Deposit History or VIP Conditions makes it impossible for any player to qualify for all rules simultaneously.
  • If the Save Campaign button does not save:
    • Verify that the campaign name is entered, the end date is strictly after the start date, target amounts are greater than 0, and at least one player condition is enabled.
  • If entering /crm/settings redirects to another page:
    • This is expected system behavior. Automation settings and campaign rules have been consolidated directly into this Campaigns (/crm/campaigns) page.