本文へスキップ
Skillpedia
エージェント9.5k · #12233

convex-agent

できること

このスキルは、会話の履歴を保存し、あなたの文書を検索して答えを探す、AIエージェントのバックエンドをConvexのアプリに加えます。対象は、アプリ内のAIアシスタントを作る開発者です。

使う場面

  • ✓Convexのアプリに、AIのチャットアシスタントを加えたいとき。
  • ✓アシスタントに、過去のメッセージを永続的なチャットのスレッドで覚えさせたいとき。
  • ✓アシスタントに、自分の文書を検索して質問に答えさせたいとき。

スキルのリンク

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-agent/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-agent/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ヘルプの記事から質問に答えるAIアシスタントを、Convexのアプリに加えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、エージェントのコンポーネントを入れ、ツールと指示を含むエージェントを定義し、スレッドとメッセージをConvexに保存します。文書検索のために、文書をベクトルのインデックスに埋め込みます。モデルの呼び出しはConvexのAIゲートウェイを通るため、通常は自分のモデルのキーは不要です。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

<!-- GENERATED from convex-agents content/capabilities/agent.json — do not edit by hand. -->

Add an AI agent / RAG backend

Install @convex-dev/agent for durable threads, message history, tool-calls, and vector search/RAG — the backend for an in-app AI agent. Call models through the Convex AI Gateway by default: Convex holds the provider credentials, so there is no LLM key to obtain, store, or rotate.

Workflow

  1. Install @convex-dev/agent + @convex-dev/ai-sdk-provider; add the agent component to convex.config.ts.
  2. Define the agent (tools, instructions) with languageModel: convexGateway("provider/model") — no API key needed (needs convex 1.45+ on a Convex Cloud deployment, paid plan).
  3. Create threads + stream messages; persist history in Convex.
  4. For RAG: embed docs into a vector index and retrieve in the tool. The gateway does not serve embeddings yet, so store the embedding provider's key via the env micro power.
  5. Only if the gateway is unavailable (free plan, self-hosted, local backend): call the provider SDK with a key stored via the env micro power.

Rules

  • Default to the Convex AI Gateway (convexGateway from @convex-dev/ai-sdk-provider) for model calls; fall back to a provider key in Convex env only where the gateway is unavailable (free plan, self-hosted, local backend).
  • Never expose a provider API key client-side; when one is needed (embeddings, gateway fallback), keep it in Convex env via the env micro power.
  • Run model calls in actions ('use node' if the SDK needs it).
  • Persist threads/messages in Convex for durability + reactivity.
よくある質問

モデルのAPIキーが必要ですか?

通常は不要です。AIゲートウェイが使えるとき、Convexがプロバイダの認証情報を保持します。

文書検索には何が必要ですか?

埋め込みのプロバイダのキーで、Convexの環境設定に保存します。ゲートウェイはまだ埋め込みを提供していないためです。

いつプロバイダのキーが必要になりますか?

ゲートウェイが使えないとき、たとえば無料プラン、自前のホスティング、ローカルのバックエンドだけです。

詳細

作者による元の説明

Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.

repo: openclaw/clawhub

人気

GitHubのスター
9.5k
ランキング
#12233
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル