title: Alexa Skills: How do I send value from one intent to another using JOVO
body: <p>I have the following intent structure:</p>
  
  <pre><code>async ContactIntent() {
     const contact_id = this.$inputs.contactid.value;
     // Contact detail is fetched from API
  
     // if this contact is associated with any group
     // ask user whether he wants to know about the groups
     // expected answers could either be YES or NO.
     // if YES, I like to jump to ContactGroupIntent intent with
     // present contact_id
     this.ask('User 19588 is associated with 5 groups. Do you want to know what they are? Say YES or NO.')
  },
  
  async ContactGroupIntent() {
     // when called directly
     const contact_id = this.$inputs.contactid.value;
     // or I want to grab the id sent from ContactIntent after user says YES
  
     // API fetches contact groups and outputs the same
  
  },
  
  'AMAZON.YesIntent': function() {
    // Do I need to do something here?
  },
  
  'AMAZON.NoIntent': function() {
  },
  </code></pre>
  
  <p>I am using JOVO framework for building the skill.</p>
  
  <p>Question are:
  1. How can I pass a value from one intent to another without losing any state
  2. Since I cannot use <code>this.ask()</code> and <code>return this.toIntent("intent_name")</code> simultaneously, how I can navigate user to another intent after alexa outputs something and that too with the value I have in current intent?</p>
  
  <p><strong>Example:</strong>
  <strong>Intent-A</strong> has a value of 19558
  The contact with above ID is associated with say 5 different groups.
  Is this possible that alexa outputs something like:</p>
  
  <blockquote>
    <p>User 19588 is associated with 5 groups. Do you want to know what they
    are?</p>
  </blockquote>
  
  <p>and expects a <code>YES</code> or <code>NO</code>.
  If YES is the answer alexa moves the control from <strong>Intent-A</strong> to <strong>Intent-B</strong> with 19588, inside Intent-B it does rest of the operations and finally outputs the names of those groups.</p>
  
  <p>I am trying to find out a solution for this since last 3 days and Googled a lot as well. But could not find any answer yet which addresses exactly this kind of situation.</p>
  
  <p>Any suggestion please? I am new to Alexa skill development.</p>