title: How can I implement relevant help during a multi-turn dialog? Amazon Alexa Python 3.6
body: <p>I am trying to implement AMAZON.HelpIntent for my Alexa Skill.</p>
  <p>This is the intended behavior:</p>
  <p><strong>User:</strong> Alexa, tell Volume Calculator to calculate the volume of a box.</p>
  <p><strong>Alexa:</strong> What is the length of the box?</p>
  <p><strong>User:</strong> Help</p>
  <p><strong>Alexa:</strong> The length of a box is how long the box is. Try saying the length is two or the length is two meters.</p>
  <p><strong>Prompt User Response</strong></p>
  <p><strong>User:</strong> The length is two meters.</p>
  <p><strong>Alexa:</strong> What is the width of the box?</p>
  <p><strong>Conversation continues until the slots of the intent are filled.</strong></p>
  <p>To achieve this behavior I need to know which intent my user is in.
  This line of code allows me to do that.</p>
  <pre><code>session.attributes['last_intent'] = 'BoxVolumeIntent'
  </code></pre>
  <p>I can check inside my AMAZON.HelpIntent if 'last_intent' == 'BoxVolumeIntent'</p>
  <pre><code>if session.attributes.get('last_intent') == 'BoxVolumeIntent':
      # Determine which part of the multi-turn dialog I am in and return
      # relevant help to the user here. Then pass the value back to the 
      # correct intent to be processed. This is what I don't know how to 
      # do.
  </code></pre>
  <p>The session.attributes is defined in flask-ask by John Wheeler.</p>
  <p>It can be accessed in Python with the following line:</p>
  <pre><code>from flask_ask import session
  </code></pre>
  <p>I asked John, in an email, earlier today if he knew how to solve my problem, and his response was that he hasn't worked on flask-ask for a while and he didn't know what a multi-turn dialog was.</p>
  <p>How can I implement the AMAZON.HelpIntent correctly for my skill?</p>
  <h1>BoxVolumeIntent</h1>
  <pre><code>@ask.intent(&quot;BoxVolumeIntent&quot;, convert={'length': int, 'width': int, 'height': int, 'unit': str},
              default={'unit': 'meters'})
  def calculate_box_volume(length, width, height, unit):
      &quot;&quot;&quot;
      Description:
          A function to calculate the volume of a box.
      Args:
          :param1 (int) length: The length of the box.
          :param2 (int) width:  The width of the box.
          :param3 (int) height: The height of the box.
          :param4 (str) unit: The unit of measurement. If unit is undefined its value defaults to 'meters'.
      :return: A statement to be spoken by the Alexa device and a card sent to the Amazon Alexa phone app.
      &quot;&quot;&quot;
      # Determine which intent was the last one called.
      session.attributes['last_intent'] = 'BoxVolumeIntent'
      
      # Taken from Issue 72. Solves the problem of returning a Dialog.Directive
      dialog_state = get_dialog_state()
      if dialog_state != &quot;COMPLETED&quot;:
          return delegate(speech=None)
  
      box_volume = length * width * height
      msg = &quot;The volume of the box is {} cubic {}&quot;.format(box_volume, unit)
      return statement(msg).simple_card(&quot;Volume Calculator&quot;, msg)
  </code></pre>
  <p>I have included the BoxVolumeIntent from my Python 3 Backend. Notice how I do not have the strings for Alexa to ask the user what the length, width, and height are. All of this is handled in the Skill Builder BETA which can be found on the Amazon Developer Console. I am not able to tell which step of the intent my user is on.</p>
  <p>Because as I mentioned in a comment below, the user could start on any of the steps. For example: The width of the box is five. That is typically step 2 not step 1 of the multi-step intent.</p>