Skip to content

Configuring interaction with the Constructor Model API

Find below the step-by-step instructions for interacting with knowledge models API in Constructor Model.

Before integrating the API, you need to obtain specific parameters. See Prerequisites to use the Constructor Model API.

After that, use API methods in the following order:

  1. Create a knowledge model
  2. Create chat sessions in a knowledge model
  3. If necessary, you can also chat with knowledge models without creating a session. See Chatting with models without sessions.
  4. Manage uploaded files in knowledge models
  5. Embed knowledge models as widgets on external websites

For the information on managing your knowledge models through API, see Managing knowledge models.

You can also see an Example of the Constructor Model API usage and a script to patch API messages for better prompt results.