FastGPTFastGPT
App Building/General Configuration

Chat Input Guide

FastGPT chat input guide

Preset question suggestions shown as the user types

What is Custom Question Guidance?

You can preset questions for your app. As users type, the system dynamically searches these questions based on their input and displays them as suggestions, helping users ask questions faster.

You can configure the question list directly in FastGPT or provide a custom API endpoint.

Custom Question List API

The endpoint must be accessible from the user's browser. Configure cross-origin resource sharing (CORS) to allow requests from the chat page's origin.

Request:

curl --location --request GET 'http://localhost:3000/api/core/chat/inputGuide/query?appId=663c75302caf8315b1c00194&searchKey=you'

Where appId is the app ID and searchKey is the search keyword (max 50 characters).

Response

{
  "code": 200,
  "statusText": "",
  "message": "",
  "data": ["it's you", "who are you", "you're great", "hello there", "who are you!", "hello"]
}

data is an array of matched questions. Return at most 5 results.

Parameters:

  • appId - App ID
  • searchKey - Search keyword
Edit on GitHub

Last updated