탐색으로 건너뛰기

대화 생성

Alpha
Create a text conversation with an agent. This does not run the agent, and the agent sends no first message. This endpoint is in alpha and may change.

헤더

xi-api-keystring선택 사항

요청

This endpoint expects an object.
agentobject필수

턴을 실행하는 에이전트입니다.

environmentstring or null선택 사항

환경 변수 확인에 사용할 환경입니다(예: ‘production’, ‘staging’). 기본값은 브랜치의 환경이며, 그다음은 ‘production’입니다.

user_idstring or null선택 사항

이 대화에 참여하는 최종 사용자 ID(에이전트 소유자의 사용자 식별용)

dynamic_variablesmap from strings to any선택 사항

응답

성공 응답

conversation_idstring

오류

422
Unprocessable Entity Error