Is there any way to copy contents of one intent to another intent?

Viewed 1701

I want to copy all the content from one intent to another intent i.e;In my agent I want to use same Responses and Training phrases in different intents,How to do that?

3 Answers

I think there is no direct way to do this, however you can still achieve this using following method.

  • Make a new agent which will have intent which you want to make copy of
  • change the name of intent to whatever you want
  • Select the intent and click on copy
  • Select your original agent where you want to make copy of your intent

copy 1

copy 2

Hope it helps.

If you are going to do this with a large set of data, I would recommend using the new Knowledge connector features and storing your Q&A's outside of dialogflow.

The best way that I've found is to export the entire agent as a zip file under the settings Export/Import tab.

Then, inside that zip file will be intents exported as JSON. Uncompress this.

You can then "copy" over the intents you wish to the other intents by making a copy of the JSON file, replacing the parentID and rootParentID with the parent you want to copy it to, while also generating a new id.

Then zip it back up, and import it.

Related