Index of every page on this site: llms.txt
All skills
masheev avatar

/masheev-ai-agents

@21d3a39
by masheevmasheev/skills1 stars
Run it yourself

Use when configuring Masheev AI agents — system prompts, model selection, tool assignment, knowledge base integration, guardrails, escalation triggers, and voice agent setup with ElevenLabs. Covers the AI agent entity, how agents connect to inboxes, prompt engineering for support agents, and the relationship between AI agents (intelligence) and voice agents (TTS/STT). Use this skill when someone asks to "set up an AI agent", "configure the chatbot", "write a system prompt", "add tools to the agent", "connect knowledge base", or "set up voice AI".

Use this Skill: https://skilld.dev/gh/masheev/skills/masheev-ai-agents

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈143 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈3.3k more on demand in 2 files.

Description uses 7.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈572 characters, or 7.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Masheev AI Agents

AI Agents are the intelligence layer behind Masheev conversations. An agent defines what the AI knows, what tools it can use, when to escalate, and how it behaves.

Architecture

Inbox (channel endpoint)
  └── AI Agent (intelligence)
        ├── System prompt
        ├── Tools (built-in + integration + client)
        ├── Knowledge base sources
        ├── Guardrails
        └── Voice config → Voice Agent (ElevenLabs TTS/STT)
  • Inbox = where conversations arrive (chat, WhatsApp, email, etc.)
  • AI Agent = the brain (prompt, tools, knowledge, rules)
  • Voice Agent = the voice (text-to-speech, speech-to-text via ElevenLabs)
  • One inbox has one AI agent. One AI agent can serve multiple inboxes.

Managing AI Agents

Via Dashboard

Settings > AI Agents > Create Agent

Via API

import { apiClient } from "@masheev/client/server";

// Create
const agent = await apiClient.aiAgents.create.mutate({
  name: "Support Bot",
  model: "claude-sonnet-4-5",
  instructions: "You are a helpful support agent for Acme Inc...",
});

// Assign to inbox
await apiClient.inboxes.update.mutate({
  id: "inb_...",
  aiAgentId: agent.id,
});

// Update
await apiClient.aiAgents.update.mutate({
  id: agent.id,
  instructions: "Updated system prompt...",
});

// List
const agents = await apiClient.aiAgents.list.query({});

System Prompt Best Practices

Structure your system prompt with clear sections:

You are [Agent Name], a support agent for [Company].

## Role
- Help customers with [domain] questions
- Be friendly, concise, and accurate

## Knowledge
- Use the knowledge base to answer product questions
- If you don't know something, say so — don't guess

## Guardrails
- Never share internal pricing or competitor comparisons
- Never promise features that don't exist
- Never share other customers' data

## Escalation
- Escalate to a human when:
  - The customer is upset or frustrated
  - The issue requires account access you don't have
  - You've been unable to resolve after 3 attempts

## Tools
- Use check_availability before suggesting appointment times
- Use create_booking only after the customer confirms

Tool Tiers

Tier Source Examples Configured Via
Built-in Platform resolve_conversation, set_priority, assign_to_human, send_message Dashboard (always available)
Capability Platform (gated) fetch_website (Internet access) Dashboard > Agent > Capabilities
Integration Third-party adapters Google Calendar, Tableport, Google Reviews Dashboard > Integrations
Client Browser-side SDK search_products, create_order (your code) tools in SDK config

Internet Access (fetch_website)

Enabling Internet access on an agent grants a platform-managed fetch_website tool that reads public web pages server-side (e.g. importing business details from a URL a customer shares). It runs on Masheev's infrastructure — you don't need a scraper or an API key, and nothing is exposed to the browser. Off by default.

  • Enable: Dashboard → Agent → Capabilities → Internet access (or capabilities.internet.enabled).
  • Restrict (optional): capabilities.internet.allowlist / blocklist limit which domains the agent may fetch (exact domain or subdomain).
  • Don't ship your own fetch_website client tool. A client tool of the same name overrides the platform one (the SDK logs a warning). Reference fetch_website by name in a workflow step and let the platform provide it.
  • Safety: fetched content is treated as untrusted data (never as instructions), fetch calls are capped per turn, and only public URLs are fetched (SSRF-guarded).

Knowledge Base Integration

Connect knowledge sources so the AI can answer questions from your docs:

// Add a knowledge source
await apiClient.knowledge.create.mutate({
  inboxId: "inb_...",
  type: "webpage",
  url: "https://docs.myapp.com",
});

// Trigger re-crawl
await apiClient.knowledge.sync.mutate({ id: "knowledge_source_id" });

The AI automatically searches the knowledge base when it doesn't have an answer from its system prompt.

Escalation

The AI automatically escalates when:

  • Confidence drops below 0.7 (configurable)
  • Customer sentiment is negative after multiple exchanges
  • The system prompt's escalation rules are triggered

Escalation assigns the conversation to a human agent or team, and fires the escalation.created webhook event.

Voice Agents

Voice agents handle speech-to-text and text-to-speech via ElevenLabs:

  • AI Agent = what to say (prompt, tools, knowledge)
  • Voice Agent = how to say it (voice selection, latency settings, language)
  • Link them: aiAgent.channelConfig.voice.voiceAgentId

Voice agents are configured in the dashboard: Settings > Voice Agents

See references/prompts.md for example system prompts by industry. See references/tools.md for built-in tool reference.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning7mo3 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    The skill provides comprehensive documentation and configuration examples for setting up AI agents on the Masheev platform. It includes system prompt templates, tool definitions, and API usage guidelines for the author's own infrastructure. No security issues were detected.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · 2 issues

Signed by skilld at 21d3a39. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 5 months ago
metadata
{
  "author": "masheev",
  "version": "0.1.0"
}

README badge

README badge for masheev/skills/masheev-ai-agents