# 开始

Afarensis GPT是一项强大的产品，它提供了针对特定用例深度定制ChatGPT的能力和自定义功能。下面将详细介绍如何为GPT创建操作。

### 创建操作步骤

创建操作需要以下三个步骤：

1. 构建 API
2. 以 OpenAPI YAML 或 JSON 格式记录 API
3. 在 ChatGPT UI 中向 GPT 公开架构

### 架构定义

创建GPT操作的第一步是构建OpenAPI规范来记录API。在这个过程中，您需要确定要包含的特定终结点，因为ChatGPT模型只会知道架构中定义的API结构。

### 测试操作

在添加操作并生成架构后，您可以在GPT编辑器中预览和测试操作。这将帮助您理解操作的运行情况，并为您提供调试信息。

### 撰写描述

为了让模型理解当用户进行可能触发操作的查询时，如何使用操作，您需要在架构中为每个终结点编写描述。这是一个需要多次尝试和优化的过程。

### 最佳实践

在编写描述和设计API响应时，有一些最佳实践可以遵循，例如：不鼓励GPT在用户未请求时使用操作、不规定特定的触发器等。

### 局限性

使用操作进行构建时，需要注意一些限制，例如：不支持自定义标头、OAuth流中使用的所有域必须与用于主终结点的域相同等。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.afarensis.com/xing-dong/kai-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
