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 dialogueWiseClient = new DialogueWiseClient(); var response = await dialogueWiseClient.deployDialogue(request);
You will now get a response of type DialogueWiseResponse indicating the status of the deployment.