Using our API you can easily add content to your dialogue. This gives you the benefit of creating new content directly from your app. First you need to prepare the request payload and do a POST as part of the body to the endpoint AddContents.
{
"slug":"[Your Slug]",
"contents":[
{
"countryCode":null, //Country Code if any
"deviceType":null, //Device type if any
"sentiment":null, //Sentiment type if any
"fields":[
{
"name":"[Field name]",
"value":"[Field value]"
}
],
"id":null //This is only required for update and delete operations.
}
],
"accessToken":"[Your Access Token]",
"emailHash":"[The hash of your email]"
}
That’s it! You will now get a response which will indicate if your content was added successfully.
Please note, all the contents that are added will be added as a draft version. You will need to deploy your Dialogue for it to be available. To understand further, please have a look at Deploying your Dialogue.