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

# エージェントビルダー

プレイグラウンドで音声エージェントをプロトタイプします。プロンプトをテストし、ボイスを設定し、数秒でデプロイできます。

## エージェントを作成する

[play.cartesia.ai/agents](https://play.cartesia.ai/agents) にアクセスし、**Start in Playground** を選択します。

<Frame>
  <img src="https://mintcdn.com/cartesia-2650f86a/bcE0PrYtfJKz4Yg4/assets/images/agents/create-from-playground.png?fit=max&auto=format&n=bcE0PrYtfJKz4Yg4&q=85&s=8fa65f495726ce9df7c4679a47455f27" alt="最初の音声エージェント作成オプション" width="1784" height="974" data-path="assets/images/agents/create-from-playground.png" />
</Frame>

エージェントの動作、ボイス、挨拶をカスタマイズします。

<Frame>
  <img src="https://mintcdn.com/cartesia-2650f86a/bcE0PrYtfJKz4Yg4/assets/images/agents/dynamic-configure-agent.png?fit=max&auto=format&n=bcE0PrYtfJKz4Yg4&q=85&s=0717dbbadf54d6377e304e023d6ef936" alt="動的なエージェント設定インターフェース" width="2100" height="1548" data-path="assets/images/agents/dynamic-configure-agent.png" />
</Frame>

**System Prompt** — エージェントの役割とガイドラインを定義します。エージェントについて自然言語で記述すると、プラットフォームが構造化されたシステムプロンプトを生成することも可能です。

**Voice** — Cartesia のボイスライブラリから選択します。選択前にプレビューできます。

**Initial Message** — 通話開始時にエージェントが話す挨拶を設定します。**Skip agent introduction** をチェックすると、ユーザーが最初に話すまでエージェントが待機します。

**Background Sound** — コールセンターの雰囲気やオフィス環境などの環境音を追加します。

公開前に変更を **Preview** できます。

## コードで構築を続ける

プレイグラウンドのエージェントを GitHub に接続して、コードでカスタマイズします。

<Steps>
  <Step title="GitHub に接続">
    エージェントページで **Connect to GitHub** をクリックします。Cartesia にリポジトリ作成の権限を付与します。
  </Step>

  <Step title="ローカルにクローン">
    ```bash theme={null}
    git clone https://github.com/your-org/your-agent.git
    cd your-agent
    ```
  </Step>

  <Step title="依存関係をインストール">
    ```bash theme={null}
    uv pip install .
    ```
  </Step>

  <Step title="エージェントを編集">
    `main.py` を開いて、ツールやカスタムロジックを追加したり、プロンプトを変更したりします。
  </Step>

  <Step title="デプロイ">
    変更をプッシュしてデプロイします。

    ```bash theme={null}
    git push
    ```
  </Step>
</Steps>

## 次のステップ

<CardGroup cols={2}>
  <Card title="クイックスタート" icon="rocket" href="/line/start-building/quickstart">
    SDK を使ってエージェントを構築する
  </Card>

  <Card title="エージェント" icon="robot" href="/line/sdk/agents">
    プロンプト、ボイス、コール前の設定
  </Card>
</CardGroup>
