Prebuilt Entity
  • 16 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Prebuilt Entity

  • Dark
    Light

Article summary

Prebuilt Entity

Prebuilt Entity JSON Format

Prebuilt Entity is represented as simple flat JSON objects with the following keys:

NameTypeDescription
dialogflowEntityIdstringId of the dialogflow entity.
idguidId of the entity.
namestringName of the prebuilt entity.
descriptionstringDescription of the prebuilt entity.
examplestring []Examples of the prebuilt entity.
languageCodestringCode of the language.

Get the list of Prebuilt Entities

GET bot/prebuiltEntities

  • Parameters:

NameTypeinRequiredDescription
languageCodestringqueryyesCode of the language.
  • Response:

An array of Prebuilt Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/prebuiltEntities \ 
    -X 'GET' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "dialogflowEntityId": "376B93B1-C148-EB11-8100-00155D081D0B",
      "id": "386B93B1-C148-EB11-8100-00155D081D0B",
      "name": "entity",
      "description": "description",
      "example": [
          "entity1",
          "entity2"
      ],
      "languageCode": "en"
  }
] 

Get a single Prebuilt Entity

GET bot/prebuiltEntities/{id}

  • Parameters:

No Parameters

  • Response:

Prebuilt Entity

  • Example

Sample Request:

curl https://api11.comm100.io/v4/bot/prebuiltEntities/386B93B1-C148-EB11-8100-00155D081D0B \ 
    -X 'GET' \ 

Response:

HTTP/1.1 200 OK

{
  "dialogflowEntityId": "376B93B1-C148-EB11-8100-00155D081D0B",
  "id": "386B93B1-C148-EB11-8100-00155D081D0B",
  "name": "entity",
  "description": "description",
  "example": [
      "entity1",
      "entity2"
  ],
  "languageCode": "en"
} 

Was this article helpful?

What's Next