title: How can we set context variables for IBM Watson from backend
body: <p>I want to pass some values to frontend in form of context variables in IBM Watson through my Node app. How can I achieve it?</p>
  
  <p>I tried to add the value I want to add to current context variable object and sent that back. Still no help. Is there any way I can do it?</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>Right now, I am adding the required value as a new key-value pair to the context object from Node app as follows. </p>
  
  <pre><code>...
  let user_name = "MJ"
  context.user_name = user_name
  response.send({
      output: output,
      context: JSON.stringfy(context)
  })
  ...
  </code></pre>
  
  <p>And in Watson Console, in one of the dialogue nodes I have used like,</p>
  
  <pre><code>Hey $user_name, How are you?
  </code></pre>
  
  <p>But the output I am getting is,</p>
  
  <pre><code>Hey , How are you?
  </code></pre>
  
  <p>I can see <code>user_name</code> value in the context object, but I can't use it in the way I mentioned above. Is there any other way to do so?</p>
  
  <hr>
  
  <p>Any help is appreciated. Thanks in advance!</p>