Deploying your Dialogue

Just like the web portal, using the SDK you can deploy your Dialogues either in Pilot or Publish mode. As part of this we first need to prepare the DeployDialogueRequest payload.

var request = new DeployDialogueRequest();
request.apiKey='[Your API Key]';
request.emailHash='[Your email hash]';
request.slug='[The dialogue slug]';

request.isPilot=true; //Set this to true if you want it to be deployed in Pilot mode. Default is Publish mode.

Once the payload is ready you just need to call the deployDialogue method.

var dialogueWiseService = new DialogueWiseService();
var response = await dialogueWiseService.deployDialogue(request);

You will now get a response of type DialogueWiseResponse indicating the status of the deployment.