> ## Documentation Index
> Fetch the complete documentation index at: https://docs-docflow.textin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# サンプルコード生成

> Agent にドキュメントにもとづく Docflow API 呼び出しコードを自動生成させる方法

## 01 シナリオ

Docflow Document Skill をインストールすると、Agent は API ドキュメントにもとづいて、パラメータ処理やエラーハンドリングを含む標準的な呼び出しコードを自動生成できます。

## 02 例

### 2.1 文書抽出コードを生成

```text theme={null}
Generate a Python code example for calling the Docflow document extraction API
```

<img src="https://mintcdn.com/docflow-bbb41569/Hl8q91UUG5hgv3co/docflow-global/ja/images/example-generate-code.png?fit=max&auto=format&n=Hl8q91UUG5hgv3co&q=85&s=eb9bfa9c62122b9e6b6e0dc5ba4bf3b7" alt="Generate sample code" width="823" height="946" data-path="docflow-global/ja/images/example-generate-code.png" />

<Tip>
  Agent が生成するコードは最新の API ドキュメントを自動参照するため、パラメータ名とエンドポイント URL の正確性を保てます。
</Tip>
