agentleFS
bolna-aibolna-ai/skills/create-agent/SKILL.md

create-agent

Skill4 starsChanged 34 days agoMITView on GitHub

Create a Bolna Voice AI agent with the current v2 API, including system prompt, welcome message, LLM, voice, transcriber, telephony input and output, latency tuning, guardrails, knowledge bases, and function tools. Use when the user wants to build, deploy, or clone a Bolna voice agent.

  • Reads credentials

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy-platform, setup-platform and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agno-agiSkill

    deploy-platform

    Deploy this AgentOS using its own provider instructions, configure JWT verification, and verify the public service. Use for first deployment, redeployment, or production configuration changes.

    Also in 6 projects that use this

  • agno-agiSkill

    setup-platform

    Set up this AgentOS from a fresh clone — confirm Docker, configure .env, boot the containers, prove the MCP endpoint live, connect the AgentOS UI, then build the user's first agent. Use when the user asks to set up the platform, get started, or bring this repo up on a new machine.

    Also in 6 projects that use this

  • ElasticSkill

    create-integration

    Use when creating a new Elastic integration package, scaffolding data streams, answering package layout or structure questions, or running the end-to-end integration build workflow. Covers package topology, scaffold commands, post-scaffold edits, and full orchestration of CEL/pipeline/test subagents.

    Also in 3 projects that use this

  • dwiziSkill

    create-tool

    Expertise in designing, scaffolding, and implementing new MCP tools using dzx conventions. Use when the user asks to "create a tool", "add a tool", "wire up a tool", or similar for MCP servers built with dzx.

    Also in 3 projects that use this

  • MicrosoftSkill

    create-hook

    Create a hook (.json) to enforce policy or automate agent lifecycle events.

    Also in 5 projects that use this

  • AnasX7Skill

    improve

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.

    Also in 7 projects that use this

  • +3 more from agno-agi

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 2 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use deprecated /agent v1 endpoints for new agents.

    line 22
  2. Very specific:

    Put dynamic variables in prompts with braces, for example {customer_name}.

    line 29
  3. Very specific:

    Add matching values later through user_data when making calls.

    line 30
  4. Very specific:

    Create or list knowledge bases with the create-knowledgebase skill.

    line 86
  5. Very specific:

    Wait until status is processed.

    line 87
  6. Very specific:

    Use the returned vector_id in the agent LLM vector store config.

    line 88
  7. Distinctive:

    Use a knowledgebase agent only when the voice agent must answer from documents, FAQs, URLs, policies, or product docs.

    line 89
  8. Very specific:

    Use setup-tools when the agent must transfer calls, call external HTTP APIs, fetch or book calendar slots, or write to CRM systems.

    line 93
  9. Very specific:

    Read references/agent-config-fields.md for full field guidance, provider choices, dynamic variables, RAG wiring, and gotchas.

    line 97
  10. Very specific:

    When you want one agent to take a call that may switch between languages mid-conversation — not one agent per language — enable …

    line 159
  11. Distinctive:

    When the agent must answer from documents (FAQs, policies, product docs):

    line 253
  12. Very specific:

    Create the knowledge base first via create-knowledgebase and wait for status == "processed".

    line 274
  13. Very specific:

    Use vector_ids[] (array) to attach multiple knowledge bases to one agent.

    line 275

“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Bolna Agent

Use the current API

  • Endpoint: POST https://api.bolna.ai/v2/agent
  • Auth: Authorization: Bearer $BOLNA_API_KEY
  • Body root: agent_config and agent_prompts
  • Response: agent_id and status: created
  • Do not use deprecated /agent v1 endpoints for new agents.

Minimum creation flow

  1. Confirm the user has BOLNA_API_KEY set.
  2. Gather: agent name, use case, language, welcome message, system prompt, LLM provider/model, voice/TTS provider, transcriber/STT provider, telephony provider, webhook URL if needed.
  3. Build one conversation task unless the user explicitly asks for extraction, summarization, or advanced flows.
  4. Put dynamic variables in prompts with braces, for example {customer_name}.
  5. Add matching values later through user_data when making calls.
  6. Include conservative call controls: silence hangup, interruption words, max duration, voicemail behavior, inbound limits.
  7. POST the payload, then save the returned agent_id.

Request shape

{
  "agent_config": {
    "agent_name": "Support Agent",
    "agent_welcome_message": "Hi {customer_name}, this is Tara from Acme.",
    "webhook_url": null,
    "agent_type": "other",
    "tasks": [
      {
        "task_type": "conversation",
        "tools_config": {
          "llm_agent": {},
          "synthesizer": {},
          "transcriber": {},
          "input": {},
          "output": {},
          "api_tools": null
        },
        "toolchain": {
          "execution": "parallel",
          "pipelines": [["transcriber", "llm", "synthesizer"]]
        },
        "task_config": {}
      }
    ],
    "ingest_source_config": null,
    "calling_guardrails": {
      "call_start_hour": 9,
      "call_end_hour": 18
    }
  },
  "agent_prompts": {
    "task_1": {
      "system_prompt": "You are a concise, helpful voice agent..."
    }
  }
}

Required task blocks

  • llm_agent: use simple_llm_agent for normal prompting or knowledgebase_agent when attaching RAG. Use agent_flow_type: streaming for live calls.
  • synthesizer: TTS provider, voice, model, streaming, buffer size, audio format.
  • transcriber: STT provider, model, language, streaming, sampling rate, encoding, endpointing.
  • input and output: telephony provider and audio format.
  • toolchain: usually one pipeline: transcriber -> llm -> synthesizer.
  • task_config: human conversation controls such as silence timeout, interruption threshold, backchanneling, voicemail, call max duration, whitelist, and unknown caller behavior.

Knowledge bases

  1. Create or list knowledge bases with the create-knowledgebase skill.
  2. Wait until status is processed.
  3. Use the returned vector_id in the agent LLM vector store config.
  4. Use a knowledgebase agent only when the voice agent must answer from documents, FAQs, URLs, policies, or product docs.

Function tools

Use setup-tools when the agent must transfer calls, call external HTTP APIs, fetch or book calendar slots, or write to CRM systems. Keep function schemas narrow, with clear descriptions and JSON parameters.

Details to read before complex agents

Read references/agent-config-fields.md for full field guidance, provider choices, dynamic variables, RAG wiring, and gotchas.

Script

python3 create-agent/scripts/create_minimal_agent.py \
  --name "Demo Support Agent" \
  --welcome "Hi {customer_name}, how can I help?" \
  --prompt "You are a helpful support agent. Keep answers brief."

Hindi / Indian-language agent

For an agent serving Indian callers in Hindi:

{
  "agent_config": {
    "agent_name": "Hindi Support Agent",
    "agent_welcome_message": "नमस्ते {customer_name}, मैं Acme से तारा बोल रही हूँ।",
    "tasks": [{
      "task_type": "conversation",
      "tools_config": {
        "llm_agent": {
          "agent_type": "simple_llm_agent",
          "agent_flow_type": "streaming",
          "llm_config": {
            "provider": "openai", "family": "openai", "model": "gpt-4.1-mini",
            "max_tokens": 200, "temperature": 0.2
          }
        },
        "synthesizer": {
          "provider": "sarvam",
          "provider_config": { "voice": "meera", "model": "bulbul-v2" },
          "stream": true, "audio_format": "wav"
        },
        "transcriber": {
          "provider": "deepgram", "model": "nova-3",
          "language": "multi-hi", "stream": true,
          "encoding": "linear16", "sampling_rate": 16000, "endpointing": 700
        },
        "input":  { "provider": "plivo", "format": "wav" },
        "output": { "provider": "plivo", "format": "wav" }
      },
      "toolchain": { "execution": "parallel", "pipelines": [["transcriber","llm","synthesizer"]] }
    }]
  },
  "agent_prompts": { "task_1": { "system_prompt": "आप तारा हैं, Acme की Voice AI सहायक। एक बार में 2 से अधिक वाक्य न बोलें। ग्राहक की भाषा में जवाब दें।" } }
}

Key choices:

  • Deepgram multi-hi STT handles Hindi-English code-switching (Hinglish) cleanly.
  • Sarvam TTS for native Hindi pronunciation.
  • Plivo telephony for Indian 160-series numbers (160 = transactional). Use Vobiz for 140-series promotional.
  • Native Devanagari in the system prompt — never phonetic English.
  • endpointing: 700 accommodates the longer pauses common in Hindi calls.

See ../prompt-writing/references/multilingual.md for the full multilingual playbook.

Multilingual agents (one agent, many languages on one call)

When you want one agent to take a call that may switch between languages mid-conversation — not one agent per language — enable multilingual_config. Bolna routes each user turn through the right STT/TTS based on which language is being spoken.

{
  "tools_config": {
    "llm_agent": { /* shared LLM across languages */ },
    "synthesizer": { /* default TTS — used when no per-language override fires */ },
    "transcriber": { /* default STT */ },
    "multilingual_config": {
      "enabled": true,
      "active_language": "hi",                          // language the call OPENS in
      "switch_tool_description": "Respond in the language the user is currently speaking. Default to Hindi.",
      "languages": {
        "hi": {
          "agent_name": "Vidya",                        // optional, advanced
          "system_prompt": "आप विद्या हैं... <full Hindi prompt>",
          "synthesizer": {
            "provider": "sarvam",
            "buffer_size": 220,
            "provider_config": { "model": "bulbul:v3", "voice": "Ashutosh", "voice_id": "ashutosh" }
          },
          "transcriber": { "provider": "elevenlabs", "model": "scribe_v2_realtime", "language": "hi" },
          "handoff_message": "एक मिनट, मैं {agent_name} से connect करती हूँ जो {language} बोलती हैं।"
        },
        "en": {
          "agent_name": "Vidya (English)",
          "system_prompt": "You are Vidya, a calm, warm voice agent... <full English prompt>",
          "synthesizer": {
            "provider": "cartesia",
            "buffer_size": 40,
            "provider_config": { "model": "sonic-3.5", "voice": "Callie - Encourager", "voice_id": "00a77add-48d5-4ef6-8157-71e5437b282d" }
          },
          "transcriber": { "provider": "deepgram", "model": "nova-3", "language": "en" },
          "handoff_message": "One moment, connecting you with {agent_name} who speaks {language}."
        }
      }
    }
  }
}

Non-obvious rules:

RuleWhy
languages.<code>.system_prompt is a complete prompt, not a translation.Each language can have its own persona, objection table, and persuasion logic.
You can mix providers across languages — Deepgram+Cartesia for en, ElevenLabs+Sarvam for hi, Azure+ElevenLabs for nl.One STT/TTS pair per agent is the wrong mental model. Pick the best per language.
handoff_message supports placeholders {agent_name} and {language}.Played when the agent switches languages mid-call.
switch_tool_description is the Language Switching Instructions field in the dashboard.This is the rule the LLM follows to decide whether to flip languages. Be explicit: "Respond in the language the user is currently using. Default to Hindi."
active_language decides which language the call opens in.Pick the highest-confidence default; let switch_tool_description handle the rest.
task_config.call_hangup_message and task_config.check_user_online_message can be dicts keyed by language code ({"en": "...", "hi": "..."}). agent_welcome_message is str only — write it in the active_language.For a per-language welcome, rely on each language's system_prompt opening and the per-language handoff_message for switches.
agent_name and handoff_message ship to callers verbatim.Set real values — empty or garbage strings ("qwegf iqghyf") reach production.

For the full worked example (Snabbit-style, three languages, per-language STT/TTS), see references/multilingual-config.md.

Second task: post-call extraction (summarization)

The tasks[] array can carry a second task that runs after the call ends, against the transcript. This is the underlying mechanism behind create-disposition.

{
  "tasks": [
    { "task_type": "conversation", /* the live call */ },
    {
      "task_type": "summarization",
      "toolchain": { "execution": "parallel", "pipelines": [["llm"]] },
      "tools_config": {
        "llm_agent": {
          "agent_type": "simple_llm_agent",
          "llm_config": {
            "provider": "openai",
            "model": "gpt-4o-mini",
            "max_tokens": 100,
            "temperature": 0.1,
            "request_json": true     // emit structured JSON instead of free text
          }
        }
      },
      "task_config": { "call_terminate": 90 }
    }
  ]
}

request_json: true is the flag that produces structured extracted_data for the webhook / GET /executions/{id}. Dispositions (create-disposition) and legacy gpt_assistants.custom_questions both ride on this task.

All the task_config knobs

The task_config block has ~25 fields covering latency, interruption, voicemail, silence handling, inbound limits, and noise suppression. Most defaults are sensible. Tune deliberately.

Full reference: references/task-config-fields.md.

Knowledge-base agent (RAG)

When the agent must answer from documents (FAQs, policies, product docs):

{
  "tools_config": {
    "llm_agent": {
      "agent_type": "knowledgebase_agent",
      "agent_flow_type": "streaming",
      "llm_config": { "provider": "openai", "model": "gpt-4o", "max_tokens": 200, "temperature": 0.3 },
      "vector_store": {
        "provider": "lancedb",
        "provider_config": {
          "vector_ids": ["<rag_id_1>", "<rag_id_2>"],
          "similarity_top_k": 8
        }
      }
    }
  }
}
  • Create the knowledge base first via create-knowledgebase and wait for status == "processed".
  • Use vector_ids[] (array) to attach multiple knowledge bases to one agent.
  • gpt-4o is recommended for KB agents — better at synthesising across retrieved chunks than gpt-4.1-mini.

Semantic routes (FAQ short-circuits)

For high-volume FAQs and policy refusals, llm_agent.routes short-circuits common questions with a pre-defined answer — zero LLM cost, near-zero latency:

{
  "llm_agent": {
    "agent_type": "simple_llm_agent",
    "agent_flow_type": "streaming",
    "llm_config": { "provider": "openai", "model": "gpt-4.1-mini", "max_tokens": 200 },
    "routes": [
      {
        "name": "refund_policy",
        "utterances": ["what's your refund policy", "can I get a refund", "how do returns work"],
        "response": "We offer full refunds within 30 days of purchase. I can email you the policy document — want that?",
        "similarity_threshold": 0.85
      },
      {
        "name": "business_hours",
        "utterances": ["what are your hours", "when are you open", "operating hours"],
        "response": "We're open 9 AM to 7 PM IST, Monday through Saturday.",
        "similarity_threshold": 0.85
      }
    ]
  }
}

Routes fire before the LLM runs. Use for FAQs, hard refusals (pricing, competitor questions), and stable policy answers. Don't use for anything that needs to be dynamic per caller.

See also

  • references/agent-config-fields.md — full field reference.
  • references/multilingual-config.md — one agent, many languages, full worked example.
  • references/task-config-fields.md — every task_config knob with default and use case.
  • make-call — how to actually dial after creation.
  • bolna-graph-agents — switch from a single prompt to a node-based flow.
  • setup-tools — add transfer_call, custom HTTP, Cal.com booking.
  • create-knowledgebase — generate the vector_id used by knowledgebase agents.
  • https://raw.githubusercontent.com/bolna-ai/skills/main/references/providers-matrix.md — picking LLM × STT × TTS × telephony combos.
  • ../prompt-writing — how to write the system_prompt.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.