title: How to get a text / return(JSON ) in my API code with Watson?
body: <p>In my example,
  If the user clicks the button "Yes" Will return a conversation text. But I'd like it to return a value from my output, the return from my <code>AJAX</code> <code>Post</code> example, which is currently only coming from the "<code>alert (output.request.number)</code>". 
  How to make? Follow the codes:</p>
  
  <p>In the conversation Intents: <code>#goodbye</code> and two entities: <code>@goodbye:yes</code> and <code>@goodbye:no</code>. If my client-side recognize the intent and user clicks the button "yes", will <strong>return something</strong>.</p>
  
  <p>My JSON Advanced (Conversation Service)</p>
  
  <pre><code>    {
        "output": {
          "text": "You can finish the conversation? \n \n 
  &lt;button id=\"button-yes\" onclick=\"OneFunction();\"&gt;Yes&lt;/button&gt; 
  &lt;button id=\"button-no\" onclick=\"OtherFunction();\"&gt;No&lt;/button&gt;"
        }
      }
  </code></pre>
  
  <p>I need the return of <code>alert(output.request.number)</code> to come in Watson's conversation flows if the user clicks on the button.</p>
  
  <p>The <strong>JS</strong> code:</p>
  
  <pre><code>function OneFunction(firstParameter, secondParameter){
   console.log(firstParameter);
      $.ajax({
          type: 'POST',
          dataType: 'json',
          contentType: "application/json",
          url: 'http://xxxxxxxxxxxxxxxxxxxxxxxx/request/create',
          data: JSON.stringify({
              "dataOne":firstParameter,
              "synchronize":false,              
              }
          }), 
      success:function(output, input, response) {
        console.log(output);
       // alert(output.request.number);
        var responseText = null;
        var outputTest = {};
        outputTest = output.request.number;
        var latestResponse = Api.getResponsePayload();
        // console.log(latestResponse);
        var context = latestResponse.context;
        Api.sendRequest = ("Yes", + outputTest);  // THIS RETURN one number of request
  }
  </code></pre>