FastGPT icon

FastGPT

AI智能客服平台

对话 → 获取会话框基本信息

AI-generated

Summary

Fetches the chat-box initialization info for a FastGPT app (such as welcome text and variables) via a GET request to /core/chat/init, optionally loading an existing chat session.

Inputs

  • 应用ID (initAppId) (required) — The FastGPT App ID. Sent as the appId query parameter.
  • 历史记录ID (initChatId) — Optional chatId of an existing conversation to load. Sent as the chatId query parameter; leave empty to omit.
  • Request Options — Optional node settings: batching (items per batch, interval), ignore SSL issues, HTTP proxy, and timeout (default 10000 ms).

Output shape

The JSON response body from FastGPT's /core/chat/init endpoint, returned as the node's output item(s). It is intended to include the app's welcome message and variable definitions.

The exact response fields aren't defined in the node source. HTTP 4xx/5xx statuses, or a body code other than 200, cause the node to throw an API error using the response message. The base URL and credentials come from the fastGPTApi credential.

Examples

Example 1: Load a chatbot's welcome message and variable definitions before starting a conversation.

Resource: 对话; Operation: 获取会话框基本信息; 应用ID: your App ID; 历史记录ID left empty.

Example 2: Restore the init info for a returning user's existing session.

应用ID: your App ID; 历史记录ID: ={{ $json.chatId }}.

Links

Discussion