code: async function createEntityType(projectId, displayName, kind) {
    // [START dialogflow_create_entity_type]
    // Imports the Dialogflow library
    const dialogflow = require('dialogflow');
  
    // Instantiates clients
    const entityTypesClient = new dialogflow.EntityTypesClient();
  
    // The path to the agent the created entity type belongs to.
    const agentPath = entityTypesClient.projectAgentPath(projectId);
  
    const createEntityTypeRequest = {
      parent: agentPath,
      entityType: {
        displayName: displayName,
        kind: kind,
      },
    };
  
    const responses = await entityTypesClient.createEntityType(
      createEntityTypeRequest
    );
    console.log(`Created ${responses[0].name} entity type`);
    // [END dialogflow_create_entity_type]
  }
docs: ///////////////////////////////////////////////////////////////////////////// Operations for entity types. /////////////////////////////////////////////////////////////////////////////