laborany
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Connect your AI SaaS intelligent agent to any messaging channel via OpenClaw (WhatsApp, Telegram, Slack, Discord, iMessage, and more)
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install amernet/amernet-ai-saas打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
This skill forwards user messages to an AI SaaS chatbot and returns its response. It maintains conversation context per user by using their channel and user identifier as a session key.
These environment variables must be set in your ~/.openclaw/openclaw.json under skills.entries.amernet-ai-saas.env:
| Variable | Description |
|---|---|
AI_SAAS_API_KEY |
Your API key from the portal (Settings → API Keys). Needs all permission. |
AI_SAAS_CHATBOT_ID |
The chatbot ID to route all messages to (copy from the Chatbots page). |
AI_SAAS_BASE_URL |
Base URL of your AI SaaS instance. Default: https://saas.salesbay.ai |
When the user sends ANY message through any connected channel:
Identify the current channel name (e.g. whatsapp, telegram, slack, discord) and the user's identifier on that channel (phone number, user ID, or username).
Construct a sender_id combining both: <channel>:<user_identifier>
whatsapp:+15551234567
telegram:123456789
slack:U012AB3CD
discord:123456789012345678
Send a POST request to the chatbot API:
POST ${AI_SAAS_BASE_URL}/api/v1/chatbots/${AI_SAAS_CHATBOT_ID}/chat
Authorization: Bearer ${AI_SAAS_API_KEY}
Content-Type: application/json
{
"sender_id": "<constructed sender_id>",
"message": "<user message text>"
}
Parse data.responses from the JSON response. Return each item's text field as a separate message to the user. If multiple responses exist, send them in order.
If the API returns an error or is unreachable, reply: "Sorry, the AI assistant is temporarily unavailable. Please try again in a moment."
If the user explicitly says "reset", "start over", "clear chat", or "/reset":
DELETE ${AI_SAAS_BASE_URL}/api/v1/chatbots/${AI_SAAS_CHATBOT_ID}/conversations/<sender_id>
Authorization: Bearer $...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
Connect your AI SaaS chatbot to any messaging channel via OpenClaw — WhatsApp, Telegram, Slack, Discord, iMessage, and more.
npm install -g openclaw@latest)You can also visit Settings → OpenClaw in the portal for a guided setup that generates the config for you.
# Clone into your OpenClaw workspace skills folder
git clone https://github.com/your-org/openclaw-skill-ai-saas \
~/.openclaw/workspace/skills/ai-saas
# Or copy manually
cp -r /path/to/openclaw-skill ~/.openclaw/workspace/skills/ai-saas
Add the following to ~/.openclaw/openclaw.json under the skills key:
{
"skills": {
"entries": {
"ai-saas": {
"enabled": true,
"env": {
"AI_SAAS_API_KEY": "sk_live_your_api_key_here",
"AI_SAAS_CHATBOT_ID": "your-chatbot-uuid-here",
"AI_SAAS_BASE_URL": "https://saas.salesbay.ai"
}
}
}
}
}
openclaw restart
Once installed, all messages sent through your connected channels (WhatsApp, Telegram, Slack, etc.) are automatically forwarded to your AI SaaS chatbot and responses are returned to the user.
| Command | Action |
|---|---|
/reset |
Clear conversation history for the current user |
/status |
Check if the AI SaaS chatbot is active |
User (WhatsApp/Telegram/Slack/...)
↓ message
OpenClaw Gateway
↓ s...
## AI SaaS Chatbot
This skill forwards user messages to an AI SaaS chatbot and returns its response. It maintains conversation context per user by using their channel and user identifier as a session key.
### Required Configuration
These environment variables must be set in your `~/.openclaw/openclaw.json` under `skills.entries.amernet-ai-saas.env`:
| Variable | Description |
|---|---|
| `AI_SAAS_API_KEY` | Your API key from the portal (Settings → API Keys). Needs `all` permission. |
| `AI_SAAS_CHATBOT_ID` | The chatbot ID to route all messages to (copy from the Chatbots page). |
| `AI_SAAS_BASE_URL` | Base URL of your AI SaaS instance. Default: `https://saas.salesbay.ai` |
### Message Routing
When the user sends ANY message through any connected channel:
1. Identify the current channel name (e.g. `whatsapp`, `telegram`, `slack`, `discord`) and the user's identifier on that channel (phone number, user ID, or username).
2. Construct a `sender_id` combining both: `<channel>:<user_identifier>`
- WhatsApp example: `whatsapp:+15551234567`
- Telegram example: `telegram:123456789`
- Slack example: `slack:U012AB3CD`
- Discord example: `discord:123456789012345678`
3. Send a POST request to the chatbot API:
```
POST ${AI_SAAS_BASE_URL}/api/v1/chatbots/${AI_SAAS_CHATBOT_ID}/chat
Authorization: Bearer ${AI_SAAS_API_KEY}
Content-Type: application/json
{
"sender_id": "<constructed sender_id>",
"message": "<user message text>"
}
```
4. Parse `data.responses` from the JSON response. Return each item's `text` field as a separate message to the user. If multiple responses exist, send them in order.
5. If the API returns an error or is unreachable, reply: "Sorry, the AI assistant is temporarily unavailable. Please try again in a moment."
### Conversation Reset
If the user explicitly says "reset", "start over", "clear chat", or "/reset":
```
DELETE ${AI_SAAS_BASE_URL}/api/v1/chatbots/${AI_SAAS_CHATBOT_ID}/conversations/<sender_id>
Authorization: Bearer $...# AI SaaS Skill for OpenClaw
Connect your [AI SaaS](https://saas.salesbay.ai) chatbot to any messaging channel via [OpenClaw](https://openclaw.ai) — WhatsApp, Telegram, Slack, Discord, iMessage, and more.
## Prerequisites
- [OpenClaw](https://openclaw.ai) installed and running (`npm install -g openclaw@latest`)
- An AI SaaS account with at least one active chatbot
- An API key from the AI SaaS portal
## Installation
### 1. Get your credentials from the AI SaaS portal
1. Open **Settings → API Keys** and create a key with **All** permissions. Copy the key.
2. Open the **Chatbots** page and copy the ID of the chatbot you want to route messages to.
You can also visit **Settings → OpenClaw** in the portal for a guided setup that generates the config for you.
### 2. Install the skill
```bash
# Clone into your OpenClaw workspace skills folder
git clone https://github.com/your-org/openclaw-skill-ai-saas \
~/.openclaw/workspace/skills/ai-saas
# Or copy manually
cp -r /path/to/openclaw-skill ~/.openclaw/workspace/skills/ai-saas
```
### 3. Configure credentials
Add the following to `~/.openclaw/openclaw.json` under the `skills` key:
```json
{
"skills": {
"entries": {
"ai-saas": {
"enabled": true,
"env": {
"AI_SAAS_API_KEY": "sk_live_your_api_key_here",
"AI_SAAS_CHATBOT_ID": "your-chatbot-uuid-here",
"AI_SAAS_BASE_URL": "https://saas.salesbay.ai"
}
}
}
}
}
```
### 4. Restart OpenClaw
```bash
openclaw restart
```
## Usage
Once installed, all messages sent through your connected channels (WhatsApp, Telegram, Slack, etc.) are automatically forwarded to your AI SaaS chatbot and responses are returned to the user.
### Special Commands
| Command | Action |
|---|---|
| `/reset` | Clear conversation history for the current user |
| `/status` | Check if the AI SaaS chatbot is active |
## How It Works
```
User (WhatsApp/Telegram/Slack/...)
↓ message
OpenClaw Gateway
↓ s...基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Reusable OpenClaw skill for remote Linux deployment with MiniMax M2.1 and Telegram bot setup
Bots learn, human earns, curated open claw playbook list and skill list for life long learners at https://botlearn.ai