Skip to content

Create

Usage

You can find the create command usage down the cxcli entity-type create command. You can read the documentation about this command here.

The --entities is a list of the entities with their synonyms, comma separated. This parameter has the following format:

entity1@synonym1|synonym2,entity2@synonym1|synonym2

Here you have an example: pikachu@25|pika,charmander@3

Example

This a simple example of the cxcli entity-type create command:

cxcli entity-type create pokemon --entities "pikachu@25|pika,charmander@3" --agent-name test-agent --project-id test-cx-346408 --location-id us-central1

The command above will give you an output like this one:

$ cxcli entity-type create pokemon --entities "pikachu@25|pika,charmander@3" --agent-name test-agent --project-id test-cx-346408 --location-id us-central1
INFO Entity Type created with id: projects/test-cx-346408/locations/us-central1/agents/40278ea0-c0fc-4d9a-a4d4-caa68d86295f/entityTypes/457a451d-f5ce-47da-b8dc-16b17d874a5d 

If you want to learn more about Dialogflow CX Entity types creation, check the official documentation.