Create session
Creates a session. A session refers to the continuous interaction between the user and Powerdrill within a conversation. Your team can have up to 150 sessions simultaneously. If the limit is reached, you can remove unnecessary sessions to make space for new ones.
Authorizations
Headers
The ID of the data agent. If no data agent ID is available or you want to use the general mode, set it to GENERAL.
The external trace ID. The length ranges from 0 to 128 characters.
Body
The session name.
The language in which the output is generated. Possible values are:
AUTO
: adaptive recognitionEN
: EnglishES
: SpanishAR
: ArabicPT
: PortugueseID
: IndonesianJA
: JapaneseRU
: RussianHI
: HindiFR
: FrenchDE
: GermanVI
: VietnameseTR
: TurkishPL
: PolishIT
: ItalianKO
: KoreanZH-CN
: Simplified ChineseZH-TW
: Traditional Chinese
AUTO
, EN
, ES
, AR
, PT
, ID
, JA
, RU
, HI
, FR
, DE
, VI
, TR
, PL
, IT
, KO
, ZH-CN
, ZH-TW
Job mode. Possible values are:
AUTO
: Powerdrill automatically detects your intent and selects the appropriate job mode from data analysis and information retrieval.DATA_ANALYTICS
: Powerdrill focuses specifically on data analysis.
AUTO
, DATA_ANALYTICS
The maximum number of messages retained per session, with a value range of 0 to 10. The default is 10.
You can set it to 0 if you don't want your answer is to contain any context of job history.
Response
Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. Possible error codes include:
- 100: Bad request.
- 201: Request frequency limit.
- 9999: Internal error.
- 100001: Invalid operation.
The returned data object.