Clone

This endpoint will create a full clone of a bot. The full clone can contain tagged text that can be transformed into dynamic text during cloning.

Tagged text can be entered in your source bot in using double square brackets like in the following example:

When the request is executed, any data of the cloned bot will be parsed and every tagged text entry will be updated with the supplied text.

Request

The following request will clone a chatbot and supply some tagged text variables:

curl --location --request POST 'https://<NODE>.xenioo.com/bot/clone' \
--header 'Authorization: Bearer <ACCOUNT_AUTH_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
	"Source":{
		"BotAPIKey":"<BOT API KEY>",
		"BotSecret":"<BOT API SECRET>"
	},
	"Destination":{
		"BotName":"I am not the clone, you are!",
		"Variables":[
			{ "Name":"customer_bot_name", "Value":"Awesome Bot" },
			{ "Name":"custom_app_api_token", "Value":"..." }
		]
	}
}'

Response

If successful, the response will contain both the API Token and the API Secret of the newly created chatbot.

{
    "APIKey":"...",
    "APISecret":"...."
}

Response Codes

This endpoint will reply with the following standard HTTP codes.

Last updated