---
title: "AI68-1 Hiro LS Researcher-Create"
method: POST
path: "/chat/ai-ls-chat"
tags: ["Bio-Pharma Encyclopedia Q&A"]
---

# AI68-1 Hiro LS Researcher-Create

`POST /chat/ai-ls-chat`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/chat/ai-ls-chat`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/chat/ai-ls-chat/post.ts> (a function with typed inputs; its response is checked against the schema)

This interface is used to initialize an Biomedical Encyclopedia Q&A chat session, obtain chat ID and chat item ID, as well as related reference document information. Usage flow: first call this interface to get chatId and chatItemId, then use these IDs to call the streaming interface to get AI responses.

## Request body `*/*`

- AI681ChatAiLsChatRequest
  - `data_source` integer: data source 1: all 2: paper 3: patent 4: clinical trials 5: fda label 6: financial report 7: clinical guideline 8: epidemiology
  - `deep_search` boolean, required: deep think
  - `long_think` boolean, required: long think
  - `query` string, required: User question
  - `search_website` boolean, required: search website

## Response `200`

Successful ai68-1 hiro ls researcher-create response.

- AI681ChatAiLsChatResponse
  - `data` AI681ChatAiLsChatEurekalsChatFlagResponse
    - `chat_id` string: Chat ID
    - `ref_doc` AI681ChatAiLsChatEurekalsChatRefDoc[]: Reference document list, containing related document reference information
      - `link` string: Document link address
      - `text` string: Document text content
      - `type` string: Document type
      - `index` string: Document Index
      - `post_time` string: Post time
      - `_text_display` string: Text display content
      - `doc_type_detail` string: Document type detail
    - `chat_item_id` string: Chat item ID
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
