g(JSON.stringify(res, null, 2));
  }
});</code></pre><h3>Dialog</h3><p>Use the Dialog service to list all the dialogs you have.</p>
<pre class="prettyprint source lang-javascript"><code>var watson = require('watson-developer-cloud');

var dialog = watson.dialog({
  username: '&lt;username>',
  password: '&lt;password>',
  version: 'v1'
});

dialog.getDialogs({}, function (err, dialogs) {
  if (err)
    console.log('error:', err);
  else
    console.log(JSON.stringify(dialogs, null, 2));
});</code></pre><h3>