Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.64 KB | None | 0 0
  1. DIALOG = {
  2.     'getstarted': {
  3.         'messages': [
  4.             {
  5.                 'text': 'Hi {{ first_name }}, Nice to meet you!'
  6.             },
  7.             {
  8.                 'payload': {'template_type': 'button',
  9.                             'text': 'Welcome to the Plastic Free July challenge - 31 days saying no to plastic... Let’s get ready for it! Can we tell you a bit about what we have planned?',
  10.                             'buttons': [
  11.                                 {'type': 'postback',
  12.                                  'payload': 'sure_onboard',
  13.                                  'title': 'Sure'},
  14.                                 {'type': 'postback',
  15.                                  'title': 'Try me tomorrow',
  16.                                  'payload': 'try_me_tomorrow'}]
  17.                             }
  18.             }
  19.         ]
  20.     },
  21.     'try_me_tomorrow': {
  22.         'messages': [
  23.             {
  24.                 'text': "Sure thing!"
  25.             }
  26.         ]
  27.     },
  28.     'sure_onboard': {
  29.         'messages': [
  30.             {
  31.                 'text': "Ok great, here's what happening.",
  32.                 'wait': 1
  33.             },
  34.             {
  35.                 'text': "To help you make a positive impact on the issue of plastic pollution, we’ll help you keep track of the role of plastic in our lives.",
  36.                 'wait': 1
  37.             },
  38.             {
  39.                 'text': "Simply keep track of whether you use any disposable plastics each day for 31 days, and we’ll give you a badge to mark your progress:",
  40.                 'wait': 1
  41.             },
  42.             {
  43.                 'text': "✅ Plastic free \n❌Used plastic",
  44.                 'wait': 2
  45.             },
  46.             {
  47.                 'text': "If you use any disposable or recyclable plastic each day, we’d like you to hold onto it for the month to take a photo - and find a better use for it.",
  48.             },
  49.             {
  50.                 'payload': {'template_type': 'button',
  51.                             'text': 'Does that make sense?',
  52.                             'buttons': [
  53.                                 {'type': 'postback',
  54.                                  'payload': 'sounds_good',
  55.                                  'title': 'Sounds good'},
  56.                                 {'type': 'postback',
  57.                                  'title': 'Tell Me More',
  58.                                  'payload': 'tell_me_more'}]}
  59.             }
  60.         ]
  61.     },
  62.     'sounds_good': {
  63.         'messages': [
  64.             {
  65.                 'text': "Awesome",
  66.             },
  67.             {
  68.                 'text': "To make it a bit easier and more fun, let’s break July into a series of 3-day mini challenges. Collect 10 badges over 30 days by completing at least 2 out of every 5 days. And there’s a special prize for perfect score holders to win on July 31st!",
  69.                 'wait': 4
  70.             },
  71.             {
  72.                 'text': 'By counting every piece of plastic in our day and making better use of it, we’re raising awareness for the role of plastic in our lives. Not to mention changing what’s possible for the future. Let’s do something different with all that plastic getting thrown into nature....'
  73.             },
  74.             {
  75.                 'text': "We’ll chat more when it’s time to begin the challenge!"
  76.             },
  77.             {
  78.                 'text': "Copy this link to invite friends to take part in the challenge with you. \nhttps://m.me/thetodayinitiative"
  79.             },
  80.         ]
  81.     },
  82.     'tell_me_more': {
  83.         'messages': [
  84.             {
  85.                 'text': "Sure thing. By monitoring the amount of plastic in our day, we can raise awareness around plastic and its alternatives. We can do something different with all the plastic getting thrown into nature… and change what’s possible by tackling the problem together.",
  86.             },
  87.             {
  88.                 'text': 'Sounds okay right?',
  89.                 'wait': 4
  90.             },
  91.             {
  92.                 'text': 'To make the whole thing a bit easier and more fun, let’s break July into a series of 3-day mini challenges. '
  93.             },
  94.             {
  95.                 'text': "Collect 10 badges over 30 days by completing at least 2 out of every 5 days. And there’s a special prize for perfect score holders to win on July 31st!"
  96.             },
  97.             {
  98.                 'text': "We’ll chat more when it’s time to begin the challenge! \nCopy this link to invite friends to take part in the challenge with you. \nhttps://m.me/thetodayinitiative"
  99.             },
  100.         ]
  101.     },
  102.     'morning_game': 'Morning {{ first name }}, just a quick one to let you know that after today we’ll only be checking in with you during the evening. But remember, it can take a couple of weeks to form a new habit, so keep up the good work and thanks for being a legend!',
  103.     'evening_game': {
  104.         'payload': {'template_type': 'generic',
  105.                     "elements": [
  106.                         {
  107.                             'title': 'How did you do today?',
  108.                             'image_url': 'https://s3-ap-southeast-2.amazonaws.com/plasticfree-chatbot/july_challenge/Day+1.png',
  109.                             'buttons': [
  110.                                 {'type': 'postback',
  111.                                  'payload': 'sure_onboard',
  112.                                  'title': 'Sure'},
  113.                                 {'type': 'postback',
  114.                                  'title': 'Try me tomorrow',
  115.                                  'payload': 'try_me_tomorrow'}]
  116.                         }
  117.                     ]
  118.                     }
  119.     }
  120.  
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement