<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 7/25/2012 5:18 PM, Ms. Nancy
      Wichmann wrote:<br>
    </div>
    <blockquote
      cite="mid:1343251104.72146.YahooMailNeo@web181601.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:12pt">
        <div><span>I see there are a few modules for SMS messaging in
            Drupal. Do any of them allow chaining messages to create a
            dialog? That is, we send one message with choices; they
            choose one and send that answer to us. Then we can send
            another message based on the first answer, etc.<br>
          </span></div>
        <div>&nbsp;<br>
        </div>
      </div>
    </blockquote>
    I've done this with Twilio and some custom code. You will have to
    keep the state in Drupal somehow (e.g. as comments, nodes, or your
    own approach). Twilio POSTs to a URL on your server when you receive
    an SMS, at which point you can create a comment programatically.
    Then you use the sms api to POST to twilio's api/server and send the
    reply (which you can also record as a comment). This doesn't take
    much custom code.<br>
    <br>
    Your difficulty will be in assigning the incoming text to a previous
    chain, if any. You could do this by requiring a token in the
    incoming SMS, or by having one chain per user/phone number. If you
    have a budget, you can get more than one phone number or short code
    and use those to distinguish different chains the user is
    participating in, although that seems difficult and/or fragile.<br>
    <br>
    Ted<br>
  </body>
</html>