ak-add-integration

ak-add-integration is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 59 tokens per session (2,333 once invoked), scanned A, original, Apache-2.0.

A setup guide for connecting an Agent Kernel agent to a messaging service or Gmail. It covers services such as Slack, WhatsApp, Telegram, Microsoft Teams, and Instagram.

In plain words
What is it for?
Use it to add a bot or email-based agent integration, configure the chosen service, and set up the handlers that receive incoming messages.
Why use it?
It shows which project files, packages, settings, and webhook handlers need to change when an agent must receive and send messages through one of these services.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yaalalabs/agent-kernel/ak-add-integration
Any agent
npx skills add yaalalabs/agent-kernel --skill ak-add-integration
Clone the repo
git clone --depth 1 https://github.com/yaalalabs/agent-kernel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ak-add-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-add-integration.svg)](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-add-integration)
Your own site
<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-add-integration"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-add-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00059 $0.02333
Opus 5 $0.00030 $0.01167
Sonnet 5 $0.00012 $0.00467
Haiku 4.5 $0.00006 $0.00233

Measured yesterday against content hash 659f3f4404b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ak-add-integration scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. Check health: `curl http://localhost:8000/health`
ak-py/src/agentkernel/skills/ak-add-integration/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a Messaging Integration

Use this skill to add a messaging platform integration to your Agent Kernel project.

Instructions for the Agent

When the user wants to add a messaging integration, follow this workflow:

Step 1: Identify the Project

Check the user's current project for:

  • An existing pyproject.toml with agentkernel dependency
  • An agent definition file (e.g., app.py, server.py, demo.py)
  • An existing config.yaml

If not found, suggest using the ak-init skill first.

Step 2: Ask Which Integration

Which messaging platform would you like to integrate?

  1. Slack — Bot that responds in Slack channels and threads
  2. WhatsApp — Bot via WhatsApp Business API (Meta)
  3. Facebook Messenger — Bot via Messenger Platform (Meta)
  4. Instagram — Bot via Instagram Messaging API (Meta)
  5. Telegram — Bot via Telegram Bot API
  6. Teams — Bot via Microsoft Teams (Azure Bot Framework)
  7. Gmail — Email-based agent via Gmail API (polling)

Step 3: Generate Changes

For Slack

1. Update pyproject.toml dependencies:

Add slack to the extras:

dependencies = [
    "agentkernel[openai,api,slack]>=0.9.0",
]

2. Update config.yaml:

slack:
  agent_acknowledgement: "I'm processing your request"
  # agent: general  # Optional: specify which agent handles Slack messages

3. Update the server file:

from agentkernel.api import RESTAPI
from agentkernel.slack import AgentSlackRequestHandler
# ... existing agent imports and definitions ...

if __name__ == "__main__":
    RESTAPI.run([AgentSlackRequestHandler()])

4. Environment variables needed:

export SLACK_BOT_TOKEN="xoxb-..."          # Bot User OAuth Token
export SLACK_SIGNING_SECRET="..."          # App signing secret

5. Setup instructions:

  • Create a Slack App at https://api.slack.com/apps
  • Enable Event Subscriptions → set Request URL to https://<your-domain>/slack/events
  • Subscribe to bot events: message.channels, message.groups, message.im, message.mpim
  • Install the app to your workspace
  • Copy Bot Token and Signing Secret to environment variables

Read the full file on GitHub · 387 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 659f3f4404b3
  2. 5d ago First seen · 387 lines · 59 tokens per session scan A 98e160858a12

Subscribe to this mod's changes

ak-add-integration is a skill published in the GitHub repository yaalalabs/agent-kernel (166 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 2,333 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.