본문으로 건너뛰기
Skillpedia
에이전트9.5k · #12233

convex-agent

하는 일

이 스킬은 Convex 앱에 AI 에이전트 백엔드를 추가해 대화 기록을 저장하고, 답을 위해 문서를 검색하게 합니다. 앱 안에 AI 어시스턴트를 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Convex 앱에 AI 채팅 어시스턴트를 추가하고 싶을 때.
  • ✓어시스턴트가 지속되는 채팅 스레드에서 과거 메시지를 기억해야 할 때.
  • ✓어시스턴트가 답을 위해 자신의 문서를 검색하기를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬