Here is the design of a clinical trial:

Official Title: Building Capacity and Promoting Smoking Cessation in the Community Via "Quit to Win" Contest 2019: Personalized Cocktail Interventions to Increase Abstinence: a Sequential, Multiple Assignment, Randomized Trial (SMART)

Included conditions:
- Smoking Cessation

Study Armgroups:
- {'label': 'Intervention Group (subgroup A+B+C)', 'type': 'EXPERIMENTAL', 'description': 'Personalized instant messaging (PIM) + optional cocktail interventions (OCI) + AWARD advice + referral card + warning leaflet+ COSH booklet', 'interventionNames': ['Behavioral: Initial phase: personalized instant messaging (PIM)', 'Behavioral: Second phase: optional cocktail interventions (OCI)', 'Behavioral: AWARD advice', 'Behavioral: Warning leaflet', 'Behavioral: Referral card', 'Behavioral: COSH booklet']}
- {'label': 'Control Group (subgroup D+E+F)', 'type': 'EXPERIMENTAL', 'description': 'Regular instant messaging (RIM) + personalized instant messaging (PIM) + AWARD advice + referral card + warning leaflet+ COSH booklet', 'interventionNames': ['Behavioral: Initial phase: regular instant messaging (RIM)', 'Behavioral: Second phase: personalized instant messaging (PIM)', 'Behavioral: AWARD advice', 'Behavioral: Warning leaflet', 'Behavioral: Referral card', 'Behavioral: COSH booklet']}

Interventions:
- {'type': 'BEHAVIORAL', 'name': 'Initial phase: personalized instant messaging (PIM)', 'description': 'intervention Group participants will receive three months of personalized interaction through IM Apps (e.g. WhatsApp, WeChat). Our counsellors will trigger the conversation and encourage the participants to set a quit day. A total of pre-set 26 messages will be sent with the schedule of once daily for 1 week (the week across the quit date), 3 times a week for 4 weeks (2 weeks each before and after the week with quit date) and once a week for remaining 7 weeks. These messages covered generic information about the benefits of quitting, methods to avoid/ manage craving or withdrawal symptoms, and encouragement to quit and use SC services.\n\nAt the end of the initial phase (1-month), complete responders (quitters) will continue to receive PIM (subgroup C). Incomplete responders (smokers) will be randomized to continue PIM (subgroup B) or receive OCI (subgroup A).', 'armGroupLabels': ['Intervention Group (subgroup A+B+C)']}
- {'type': 'BEHAVIORAL', 'name': 'Second phase: optional cocktail interventions (OCI)', 'description': 'For incomplete respondents (subgroup A) randomized to OCI, the available intervention options include multi-media messages, active referral plus financial incentive, phone counseling, family/peer support and medications (NRT). Participants will be guided by cessation counsellors at 1-month follow-up telephone survey to choose any combination of OCI based on their preference. If OCI participants cannot be followed up at 1-month, they will receive multi-media messages by default.', 'armGroupLabels': ['Intervention Group (subgroup A+B+C)']}
- {'type': 'BEHAVIORAL', 'name': 'Initial phase: regular instant messaging (RIM)', 'description': 'Participants enrolled in the Control Group will receive regular messages via IM services (e.g. WhatsApp, WeChat) since initial contact and until 3-month after baseline with a tapering schedule: 1) Baseline to 4-week (1-month): 2 times/ week (8 in total); 2) 4-week to 12-week (2- \\& 3-month): 1 time/week (8 in total).\n\nSC messages will generally include benefits of SC, encouragement on abstinence and use of SC services, tips on avoiding/ handling craving and reminder of participating in telephone follow-up. A reminder to participate in the telephone follow-up will also be sent at 1-, 2-, 3- and 6-month, making up a total of 20 messages.\n\nAt the end of the initial phase (1-month), complete responders (quitters) will continue to receive RIM (subgroup F). Incomplete responders (smokers) will be second randomized to continue RIM (subgroup E) or receive PIM (subgroup D). Those who are unable to follow up at 1-month will be considered as nonresponsive to the intervention.', 'armGroupLabels': ['Control Group (subgroup D+E+F)']}
- {'type': 'BEHAVIORAL', 'name': 'Second phase: personalized instant messaging (PIM)', 'description': 'For incomplete responders allocated to PIM (subgroup D), participants will receive the same intervention as the Group A delivered at the initial stage. Participants will receive two months of personalized interaction through IM application. Please refer to Intervention Group "Initial phase: personalized instant messaging (PIM)" for details.', 'armGroupLabels': ['Control Group (subgroup D+E+F)']}
- {'type': 'BEHAVIORAL', 'name': 'AWARD advice', 'description': 'Ask about smoking history, Warn about the high risk of smoking, Advise to quit as soon as possible, Refer to the smoking cessation services, and Do it again (if the smokers refused to set quit date).', 'armGroupLabels': ['Control Group (subgroup D+E+F)', 'Intervention Group (subgroup A+B+C)'], 'otherNames': ['Ask, Warn, Advise, Refer, Do-it-again']}
- {'type': 'BEHAVIORAL', 'name': 'Warning leaflet', 'description': 'The 2-sided color printed A4 leaflet, which systematically covers the most important messages to motivate smoking cessation', 'armGroupLabels': ['Control Group (subgroup D+E+F)', 'Intervention Group (subgroup A+B+C)'], 'otherNames': ['Brief leaflet on health warning and smoking cessation']}
- {'type': 'BEHAVIORAL', 'name': 'Referral card', 'description': 'The 3-folded "Smoking Cessation Services" card consists of brief information and highlights of existing smoking cessation services, contact methods, motivation information and strong supporting messages or slogans', 'armGroupLabels': ['Control Group (subgroup D+E+F)', 'Intervention Group (subgroup A+B+C)'], 'otherNames': ['Smoking Cessation Service Card']}
- {'type': 'BEHAVIORAL', 'name': 'COSH booklet', 'description': 'A general smoking cessation self-help booklet', 'armGroupLabels': ['Control Group (subgroup D+E+F)', 'Intervention Group (subgroup A+B+C)'], 'otherNames': ['COSH self-help smoking cessation booklet']}

Primary Outcomes:
- {'measure': 'Validated abstinence of PIM + OCI vs. RIM + PIM', 'description': 'PIM + OCI (subgroup A+B+C) vs. RIM + PIM (subgroup D+E+F) on validated abstinence (exhaled CO \\< 4 ppm and salivary cotinine \\< 10 ng/ml)', 'timeFrame': '6-month follow-up'}
- {'measure': 'Validated abstinence of OCI vs. RIM in incomplete responders', 'description': 'OCI (subgroup A) vs. RIM (subgroup E) in incomplete responders (those who are still smoking at 1-month) on validated abstinence (exhaled CO \\< 4 ppm and salivary cotinine \\< 10 ng/ml)', 'timeFrame': '6-month follow-up'}

Please estimate the sample size based on the assumption: 
80% power with a 5% false-positive error rate with an allocation ratio of 1:1. For the second randomisation, using an allocation ratio of 3:1 with a 5% false-positive error rate, a power of 0.81.
Sample size and power calculation
        G*Power is used to calculate the sample size [39]. The required sample size is based on the primary comparison of validated quit rate at 6 months (Fig. 1, Subgroup A+B+C versus Subgroup D+E+F). A meta-analysis showed the risk ratio of mHealth intervention on smoking cessation for biochemically validated abstinence at 6 months was 1.83 [40]. Assuming a 6-month biochemically validated quit rate of 5.0% in the in the D+E+F subgroups, 1200 participants will be needed (600 in each group) to achieve 80% power with a 5% false-positive error rate with an allocation ratio of 1:1.
        In our previous mHealth trial, self-reported 7-day PPA at 1 month of the intervention and control group was 10.7% and 7.7%, respectively [6]. We estimate there will be 64 (= 600Ã10.7%) and 46 (= 600Ã7.7%) quitters for PIM and RIM groups at 1-month follow-up. Non-responders in the PIM (536, =600â64) and RIM groups (554, =600â46) will be reallocated by the second randomisation. Using an allocation ratio of 3:1 with a 5% false-positive error rate, a sample size of 402 (=536Ã3/4) in subgroup A and 416 (=554Ã3/4) in subgroup E has a power of 0.81 to test the co-primary outcome of validated quit rate at 6 months (Subgroup A versus Subgroup E).