> ## Documentation Index
> Fetch the complete documentation index at: https://docs-docflow.textin.com/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/afoTfNkOjgAx6tmV/docflow/ja/images/example-generate-code.png?fit=max&auto=format&n=afoTfNkOjgAx6tmV&q=85&s=6105ba1b71b3efdfb8200762e4057c17" alt="Generate sample code" width="823" height="946" data-path="docflow/ja/images/example-generate-code.png" />

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