# Input Guide

> Configure input autocomplete suggestions and prompt lexicon guidance in FastGPT chat applications to help users ask effective questions.

Source: https://doc.fastgpt.io/guide/build/general/chat_input_guide
Last Updated: 2026-11-12

![Input Guide — interface example](https://cdn.jsdelivr.net/gh/labring/fastgpt-img@main/optimized/current/input-guide-suggestions.png.webp)

## What is Input Guide?

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.

## Configuration Entry

1. Open the Chat Agent or Workflow editor, locate **Input Guide** in the left configuration panel (or under **System Settings** in a Workflow), and turn on the toggle.
2. Click **Configure Lexicon** to add or import preset questions directly in FastGPT, or click **Custom Lexicon URL** to specify an external API endpoint.

## Custom Lexicon URL Specification

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. After you set a custom API URL, the browser sends a GET request to it as the user types; no request is sent when the input exceeds 20 characters.

**Request:**

```bash
curl --location --request GET 'https://your-domain.com/api/input-guide?sourceType=app&sourceId=663c75302caf8315b1c00194&searchKey=you'
```

Where `sourceType` is the chat source type (`app` for app chats), `sourceId` is the app ID, and `searchKey` is the search keyword. Requests from a share link also include `outLinkAuthData` (the share authentication data as a JSON string).

**Response**

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

`data` is an array of matched questions. Your endpoint decides how many to return (the built-in FastGPT lexicon returns up to 6).

**Parameters:**

* sourceType - Chat source type, `app` for app chats
* sourceId - App ID
* searchKey - Search keyword
* outLinkAuthData - Share authentication data as a JSON string, sent only from share links
