# Quick Start: Build and Publish Your First Q&A Application in 5 Minutes

> Follow definite steps to import sample data, connect a Chat Agent, verify responses, and generate a public share link.

Source: https://doc.fastgpt.io/en/guide/getting-started/quick-start

This tutorial guides first-time builders through creating a grounded knowledge-base Q\&A assistant in 5 minutes and generating an externally accessible share link.

## Learning Goals and Preparation

By completing this tutorial, you will build an online assistant capable of answering corporate travel expense policies accurately, mastering the end-to-end workflow of "import knowledge base → attach to Agent → test in workspace → publish to production".

Before starting, prepare the following resources:

* Resource creation permissions in your current workspace team.
* Configured chat models and embedding models (SaaS accounts include default models; for self-hosted instances, refer to [Model Configuration](/en/self-host/config/model/intro)).
* Save the following sample text locally as a UTF-8 encoded file named `travel-policy.txt`:

```text
FastGPT Example Travel Policy
1. Submission deadline: Employees must submit expense reports within 15 calendar days after returning from a business trip.
2. Mandatory receipts: Every claim must attach an official tax invoice and an approved travel request form.
3. Finance review SLA: The finance department completes review and disbursement within 5 business days after receiving complete valid receipts.
```

## Step 1: Create a Knowledge Base and Import Sample Data

1. Log in to FastGPT, click "Dataset" in the left navigation bar, click "New" in the upper right corner, and select "General Dataset" from the dropdown menu.
2. In the creation dialog, enter `Corporate Travel Policy` as the name, keep the default "Embedding model" and "File read model", and click "Create".
3. Open the newly created knowledge base, click "Create/Import → Text Collection → Local File", upload `travel-policy.txt` in the "Select a file" step, wait until upload reaches 100%, and click "Next".
4. In the "Parameter settings" step, keep the default data processing settings and click "Next".
5. In the "Data preview" step, click `travel-policy.txt` in the left file list, verify in the "Preview chunks" panel on the right that the submission deadlines and receipt requirements remain intact, and click "Next".
6. In the "Start import" step, click "Start Upload" and wait until the training status in the collection list turns to "Ready".

![Create travel policy knowledge base and choose available model](https://cdn.jsdelivr.net/gh/labring/fastgpt-img@main/optimized/current/knowledge-create.png.webp)

## Step 2: Create a Chat Agent and Attach the Knowledge Base

1. Click "Studio" in the left navigation bar. Click "Create your first Agent" in the center of the page (or the "New" card in the list if applications already exist) to open the "Create Agent" page.
2. Select "Chat Agent" under "Agent Type", enter `Travel Policy Q&A` as the name in the icon & name area, and click "Create".
3. In the "App settings" panel under "AI Settings → Model", select an available chat model (such as `qwen3.8-flash`).
4. In the "Dataset" section below, click "+ Choose" on the right, check the `Corporate Travel Policy` knowledge base created earlier, and confirm.
5. In the "Prompt" field, enter the operational instructions:

```text
Answer questions using the retrieved travel policy. State the deadline and required documents precisely. Cite the available sources. When the policy does not cover a question, explain what information is missing.
```

## Step 3: Test Responses in Workspace

In the right-hand "Debug preview" panel, submit a test query:

```text
How many days do I have to submit my travel expenses after returning? What documents are required?
```

Inspect the response. The assistant clearly identifies the "15 calendar days" deadline, lists invoices and approved request forms, and provides citations linked to the original knowledge chunk.

![Knowledge Q\&A assistant answers query with grounded citations](https://cdn.jsdelivr.net/gh/labring/fastgpt-img@main/optimized/current/knowledge-answer.png.webp)

## Step 4: Publish a Public Share Link

1. Click the "Save" button in the top right corner and select "Save and Publish" from the dropdown; enter a version name (such as `Travel Policy v1`) in the dialog and click "Confirm".
2. Open the "Publishing channels" tab at the top and select "Login-Free Window" on the left.
3. Click "Create New Link" in the upper right corner, enter a link name (optionally enable "View citation snippets"), and click "Confirm". The generated share URL is copied automatically.
4. Open the link in a separate browser tab to verify the standalone user experience.

![Publish share link for end users](https://cdn.jsdelivr.net/gh/labring/fastgpt-img@main/optimized/current/app-publish.png.webp)

## Next Steps

After publishing your first assistant, explore these advanced capabilities:

* Multi-step tasks: Learn autonomous tool execution in [Create Your First Agent Task](/en/guide/getting-started/first-agent).
* Process orchestration: Connect nodes and variables in [Build Your First Workflow](/en/guide/getting-started/first-workflow).
* Conceptual map: Read [Core Concepts](/en/guide/getting-started/concepts) and [Application Types](/en/guide/getting-started/application-types).
* Real-world solutions: Check the [Complete Examples](/en/guide/getting-started/quick-start#complete-examples).

## Complete Examples

* [Case 1: Conversational Agent — Corporate Email Writing Assistant](/en/guide/getting-started/examples/email-assistant)
* [Case 2: Dataset + Conversational Agent — Civil Code Q\&A Assistant](/en/guide/getting-started/examples/civil-code-qa)
* [Case 3: Workflow — Content Review and Automatic Rewriting](/en/guide/getting-started/examples/content-review)
* [Case 4: Agent V2 — Intelligent Data Analysis Agent](/en/guide/getting-started/examples/data-analysis)

**Earlier section links**

* [Case 1: Conversational Agent — Corporate Email Writing Assistant](/en/guide/getting-started/examples/email-assistant)
* [Case 2: Dataset + Conversational Agent — Civil Code Q\&A Assistant](/en/guide/getting-started/examples/civil-code-qa)
* [Case 3: Workflow — Content Review and Automatic Rewriting](/en/guide/getting-started/examples/content-review)
* [Case 4: Agent V2 — Intelligent Data Analysis Agent](/en/guide/getting-started/examples/data-analysis)
* [Choosing Application Types](/en/guide/getting-started/application-types)
