Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

call-deployed-crew

БесплатноБез исполняемых скриптовНе проверен

Calling a crew or flow deployed on CrewAI AMP over HTTP: the bearer token and deployment URL, GET /inputs, POST /kickoff with the {"inputs": {...}} body…

crewAIIncот crewAIInc★ 51 звезда на GitHub

Об этом скилле

Call a Deployed Crew

How to call a crew or flow that runs on CrewAI AMP from your own code, and how to write the crew so those calls stay correct.

Verified against crewai 1.15.22 and 1.15.23 on 2026-10-01. Live-tested on CrewAI AMP and real LLMs on 2026-10-01. Run crewai version first; if the major/minor differs, re-check the version-sensitive rows with the ask-docs skill.


1. The contract on one screen

Every deployment has its own base URL (https://<your-deployment>.crewai.com) and bearer token, both shown on the deployment's page in the AMP dashboard (Status tab). crewai deploy status prints neither. All calls send Authorization: Bearer <token>.

Call Body Success response (live) Docs
GET /inputs - {"inputs": ["audience", "topic"]} GET /inputs
POST /kickoff {"inputs": {"topic": "...", ...}} plus optional siblings (section 4) {"kickoff_id": "<uuid>"} POST /kickoff
GET /status/{kickoff_id} - run state, progress, result (section 5) GET /status
POST /resume see section 5 - verify the body on your deployment {"kickoff_id": "<new uuid>"} POST /resume

Use GET /inputs as the readiness check; GET / may return 404.

Responses to expect (handle the documented codes too - API introduction):

Request Live response
Wrong token 401 {"detail":"Invalid or missing authentication credentials"}
No Authorization header 401 {"detail":"Not authenticated"}
Crew kickoff with a required key missing, {"inputs": {}}, {} or a bare body 422 {"detail":"Missing inputs: audience, topic"} - a plain string, not details.missing_inputs
Body that is not valid JSON 500 Internal Server Error
GET /status/<unknown id> 200 with "state": "NOT FOUND" - not 404
export CREWAI_DEPLOYMENT_URL="https://<your-deployment>.crewai.com"
export CREWAI_DEPLOYMENT_TOKEN="<your-bearer-token>"

curl -s -H "Authorization: Bearer $CREWAI_DEPLOYMENT_TOKEN" "$CREWAI_DEPLOYMENT_URL/inputs"

curl -s -X POST "$CREWAI_DEPLOYMENT_URL/kickoff" \
  -H "Authorization: Bearer $CREWAI_DEPLOYMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"topic": "AI agents", "audience": "engineers"}}'

curl -s -H "Authorization: Bearer $CREWAI_DEPLOYMENT_TOKEN" \
  "$CREWAI_DEPLOYMENT_URL/status/<kickoff_id>"

Rules:

  • Keep the URL and token in environment variables or a secret store. Never hard-code the token, commit it, log the Authorization header, or ship it to a browser - call the deployment from your backend.
  • The dashboard shows an organization-level Bearer Token and a User Bearer Token with narrower permissions. Use the narrowest one that works for the integration.

2. Required inputs come from {placeholder} tokens

The keys a crew needs are the {name} tokens in its task description / expected_output and its agent role / goal / backstory. GET /inputs lists them for the deployed version. Read the keys from /inputs (or from your code) - never guess them.

Locally, Crew.fetch_inputs() is crewai's own scan of the same fields:

from crewai import Agent, Crew, Task

agent = Agent(role="{topic} researcher", goal="Explain {topic}", backstory="Writes for {audience}.")
task = Task(description="Research {topic} for {audience}.", expected_output="A summary of {topic}.", agent=agent)
print(sorted(Crew(agents=[agent], tasks=[task]).fetch_inputs()))  # ['audience', 'topic']

What crewai does with the inputs it receives (verified locally on 1.15.22-1.15.23):

You send What happens
Every placeholder key Values are substituted into agent and task text before the first LLM call
A placeholder key missing ValueError: Missing required template variable 'Template variable 'audience' not found in inputs dictionary' in description - raised before any LLM call
An extra key with no placeholder Silently ignored; it never reaches a prompt
No inputs, or inputs={} Locally: no error - interpolation is skipped and the literal text {topic} reaches the model. A deployed crew rejects it with 422 (section 1)
int / float / bool / list / dict values Stringified with str() - locally, and on a live deployment ("audience": 3 produced AUDIENCE=3). The API documents every input value as a string - send strings to a crew (flows: section below)

Consequences:

  • Validate the request against /inputs in your client before calling /kickoff, and send every key. Do not rely on an empty-inputs run failing loudly - it does on AMP, not when you call kickoff() yourself.
  • A literal JSON example inside a prompt (Reply like {"title": "..."}) is n
Полный SKILL.md на GitHub

Установить call-deployed-crew в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-contract.mdreferences/concurrency-safe-crews.mdreferences/python-client.md

FAQ

Что делает скилл call-deployed-crew?

Calling a crew or flow deployed on CrewAI AMP over HTTP: the bearer token and deployment URL, GET /inputs, POST /kickoff with the {"inputs": {...}} body, which input keys are required ({placeholder} tokens), polling GET /status/{kickoff_id} with a deadline and backoff, terminal states and where the result lives, webhooks, POST /resume, slow first calls, and writing crews that stay correct when they are kicked off repeatedly or concurrently. Use when writing a client, script, backend or frontend that calls a deployed crew, when a kickoff returns 422 "Missing inputs: ...", when a status poll never ends, says "NOT FOUND" or the result field is empty, when /resume returns 422 for executionId, when a run's prompt shows another run's data, or when the user pastes a kickoff_id, a /kickoff curl, or 'Template variable ... not found in inputs dictionary'.

Как установить скилл call-deployed-crew?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл call-deployed-crew запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить call-deployed-crew с