AI Chat

Let the chat's sandbox use one service, whether or not it belongs to a project. The service must be one the sandbox can get credentials of its own on; the variables commands receive are the same a deployment gets.

Changed on
post/ai/conversations/{public_id}/sandbox/services

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/conversations/{public_id}/sandbox/services
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Request body

project_idinteger nullable

A project the service is linked to. Names the sandbox's database or bucket after the project; without it the name comes from the sandbox.

service_idinteger required

The service the sandbox may use.

Response

Sandbox connected

connected_service_idsinteger[] required

Services the sandbox can now reach.

project_idsinteger[] required

Projects the sandbox is now linked to services through.

skipped_service_idsinteger[] required

Linked services left out because their type cannot give a sandbox credentials of its own yet.

variable_namesstring[] required

Names (never values) of the variables commands now run with.

Changes