Skip to content

Instantly share code, notes, and snippets.

@axpence
Created February 23, 2016 10:27
Show Gist options
  • Select an option

  • Save axpence/5c4b43a8dc74aab4c3c0 to your computer and use it in GitHub Desktop.

Select an option

Save axpence/5c4b43a8dc74aab4c3c0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<survey name="EventStateMachine24006">
<node id="INITIAL_STATE" day="1" linkToFile="https://s3-us-west-2.amazonaws.com/eventz-vcards/Gather_SG_3.vcf" onEnterAction="MMS" expectedResponseType="range" body="I'm here to make the Startup Grind Global Conference the best event ever.\n\nAsk me any question you can think of, or choose an option below (1-3)\n\n1) Check schedule\n2) Search for attendee contact info\n3) Share your contact info with attendees">
<node id="CHECK_SCHEDULE_SCALA" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="1,1)" postGuardTransitionLambda="heartbeat-js-GetSchedule" body="">
<pointer id="GO_BACK_TO_CHECK_SCHEDULE_SCALA_3" onEnterAction="NONE" preGuardTransitionValues="1,1)" transitionToState="CHECK_SCHEDULE_SCALA"></pointer>
<pointer id="GO_BACK_TO_LOOKUP_OTHERS_CONTACT_INFO_3" onEnterAction="NONE" preGuardTransitionValues="2,2)" transitionToState="LOOKUP_OTHERS_CONTACT_INFO"></pointer>
<pointer id="GO_BACK_TO_SHARE_MY_CONTACT_INFO_3" onEnterAction="NONE" preGuardTransitionValues="3,3)" transitionToState="SHARE_MY_CONTACT_INFO"></pointer>
</node>
<node id="LOOKUP_OTHERS_CONTACT_INFO" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="2,2)" body="Type the name of the person you'd like to look up. We'll search for their contact information.">
<node id="SEARCH_CONTACTS" onEnterAction="MMS" preGuardTransitionLambda="heartbeat-js-SearchContact" body="debug: entered SEARCH_CONTACTS state!">
<pointer id="GO_BACK_TO_CHECK_SCHEDULE_SCALA_1" onEnterAction="NONE" preGuardTransitionValues="1,1)" transitionToState="CHECK_SCHEDULE_SCALA"></pointer>
<pointer id="GO_BACK_TO_LOOKUP_OTHERS_CONTACT_INFO_1" onEnterAction="NONE" preGuardTransitionValues="2,2)" transitionToState="LOOKUP_OTHERS_CONTACT_INFO"></pointer>
<pointer id="GO_BACK_TO_SHARE_MY_CONTACT_INFO_1" onEnterAction="NONE" preGuardTransitionValues="3,3)" transitionToState="SHARE_MY_CONTACT_INFO"></pointer>
</node>
</node>
<node id="SHARE_MY_CONTACT_INFO" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="3,3)" body="Send us your Contact Card (vCard).\n\n(Follow instructions here: http://bit.ly/how_to_send_contact_info ) \n">
<node id="ADD_MY_CONTACT_INFO" onEnterAction="SMS" preGuardTransitionLambda="heartbeat-py-AddContact" body="debug: entered ADD_MY_CONTACT_INFO state!">
<pointer id="GO_BACK_TO_CHECK_SCHEDULE_SCALA_2" onEnterAction="NONE" preGuardTransitionValues="1,1)" transitionToState="CHECK_SCHEDULE_SCALA"></pointer>
<pointer id="GO_BACK_TO_LOOKUP_OTHERS_CONTACT_INFO_2" onEnterAction="NONE" preGuardTransitionValues="2,2)" transitionToState="LOOKUP_OTHERS_CONTACT_INFO"></pointer>
<pointer id="GO_BACK_TO_SHARE_MY_CONTACT_INFO_2" onEnterAction="NONE" preGuardTransitionValues="3,3)" transitionToState="SHARE_MY_CONTACT_INFO"></pointer>
</node>
</node>
</node>
</survey>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment