OpenClaw Agent , Sub Agent , Multi Agent
OpenClaw Agent , Sub Agent , Multi Agent
Telegram Channel
āļ้āļāļ set Telegram channel āđāļŦ้āđāļĢีāļĒāļāļĢ้āļāļĒāļ่āļāļ
/newbot
āļั้āļāļื่āļ Bot
/mybots
OpenClaw Workshop
āļŠāļĢ้āļēāļ Project Team āļŠāļģāļŦāļĢัāļ Search Content āđāļĨāļ° Create Content
āļั้āļāļāļāļāļี่ 1: āļั้āļāļ่āļēāđāļŦ้ Bot āļāļāļāļ้āļāļāļ§āļēāļĄāđāļāļāļĨุ่āļĄ Telegram
Prompt āđāļŦ้ AI āļāļģ
āļāļĢัāļ Telegram Group Policy āđāļ็āļ open āđāļĨāļ°āļั้āļ allowFrom āđāļŦ้āļĢัāļāļāļēāļāļุāļāļāļ ("*") āļāļēāļāļั้āļ restart gateway āđāļื่āļāđāļŦ้āļāļēāļĢāļั้āļāļ่āļēāļĄีāļāļĨ
āļāļĨāļĨัāļāļ์āļี่āļāļ§āļĢāđāļ้āđāļ openclaw.json
"telegram": {
"enabled": true,
"botToken": "8732426267:AAGrO_DINTwI5MNTxuBFPTOwAO9OkM",
"dmPolicy": "pairing",
"groupPolicy": "open",
"groupAllowFrom": [
"*"
],
"groups": {
"*": {
"requireMention": true
}
}
},
āļั้āļāļāļāļāļี่ 2: āļŠāļĢ้āļēāļāļāļĨุ่āļĄāđāļŦāļĄ่ āđāļ Telegram āđāļĨāļ°āđāļิ่āļĄ Bot āđāļ้āļēāļāļĨุ่āļĄ
āļŠāļĢ้āļēāļāļāļĨุ่āļĄ Project-Team
āļ้āļāļāļั้āļāļ่āļēāļ่āļēāļ BotFather āļ่āļāļ āđāļิ่āļĄ Bot āđāļ้āļēāļāļĨุ่āļĄ
āđāļิāļ BotFather → āđāļĨืāļāļ Bot āļāļāļāđāļĢāļē
āļั้āļāļ่āļē Allow Groups → Enabled
āļั้āļāļ่āļē Group Privacy → Disabled (āļāļģāđāļ็āļāđāļื่āļāđāļŦ้ Bot āļ่āļēāļāļ้āļāļāļ§āļēāļĄāđāļāļāļĨุ่āļĄāđāļ้)
āđāļิ่āļĄ Bot āđāļ้āļēāļāļĨุ่āļĄ Telegram āļี่āļ้āļāļāļāļēāļĢ
āļāļĨāļĨัāļāļ์āļี่āļāļ§āļĢāđāļ้
Bot āļŠāļēāļĄāļēāļĢāļāļāļāļāđāļāļāļĨุ่āļĄ Telegram āđāļ้āđāļĄื่āļāļĄีāļāļēāļĢ mention @āļื่āļāļāļāļ
āļั้āļāļāļāļāļี่ 3: āļŠāļĢ้āļēāļ Agent āļัāļ§āđāļŦāļĄ่
āļŠāļĢ้āļēāļ Agent āđāļิ่āļĄāļีāļāļัāļ§āđāļĒāļāļāļēāļ Agent āļŦāļĨัāļ āđāļื่āļāđāļŦ้āđāļ่āļĨāļ° Agent āļāļģāļŦāļ้āļēāļี่āđāļāļāļēāļ°āļāļēāļāđāļ้
āļŠāļĢ้āļēāļ Agent āđāļŦāļĄ่āļื่āļ content āļ้āļ§āļĒāļāļģāļŠั่āļ openclaw agents add
āļāļģāļŠั่āļāļี่ AI āļāļ°āļĢัāļ
openclaw agents add <āļื่āļ Agent>
āļāļĨāļĨัāļāļ์āļี่āļāļ§āļĢāđāļ้
āļĄีāđāļāļĨāđāļāļāļĢ์āđāļŦāļĄ่āļี่ ~/.openclaw/workspace-<āļื่āļ Agent>/
āļ āļēāļĒāđāļāļĄีāđāļāļĨ์ bootstrap.md āļŠāļģāļŦāļĢัāļāļั้āļāļ่āļē System Prompt āļāļāļ Agent āļัāļ§āļี้
āļั้āļāļāļāļāļี่ 4: āļŠāļĢ้āļēāļ Topics āđāļŦāļĄ่ āđāļāļāļĨุ่āļĄ Telegram
āļŠāļĢ้āļēāļ Topic Search-Content
āļŠāļĢ้āļēāļ Topic Create-Content
Topics āļāļģāđāļŦ้āđāļ่āļĨāļ°āļŦัāļ§āļ้āļāđāļāļāļĨุ่āļĄāđāļ้ System Prompt āļāļāļĨāļ°āļัāļ§āđāļ้ — āđāļŦāļĄืāļāļāļĄีāļŦāļĨāļēāļĒ Agent āđāļāļāļĨุ่āļĄāđāļีāļĒāļ§āļัāļ
āļ§ิāļีāļāļģ
āļŠāļĢ้āļēāļ Topic āđāļāļāļĨุ่āļĄ Telegram (āļ่āļēāļāđāļāļ Telegram)
āļāļ Group ID āđāļĨāļ° Topic ID āļั้āļāļŦāļĄāļāļāļĢ้āļāļĄāļื่āļāļāļēāļ AI āđāļāļĒāļāļēāļĢāđāļāļ
āļั้āļāļāļāļāļี่ 5: Bind āļāļĨุ่āļĄ Telegram āļัāļ Agent āļัāļ§āđāļŦāļĄ่
āļูāļāļāļĨุ่āļĄ Telegram āļัāļ Agent Workspace āļี่āļ้āļāļāļāļēāļĢ āđāļื่āļāđāļŦ้āļāļĨุ่āļĄāļั้āļāđāļ้ Agent āđāļāļāļēāļ°āļāļēāļāļัāļ§āđāļŦāļĄ่
Prompt āđāļŦ้ AI āļāļģ
Bind āļāļĨุ่āļĄ Telegram <Group ID> āļัāļ Agent <āļื่āļ Agent> āļี่ ~/.openclaw/workspace-<āļื่āļ Agent>
restart gateway āļŦāļĨัāļ bind āđāļŠāļĢ็āļ
Bind Telegram group id -1004324320743 with Agent content at /home/ubuntu/.openclaw/workspace/content
āļัāļ§āļāļĒ่āļēāļāļāļĨāļĨัāļāļ์āđāļ openclaw.json
"bindings": [
{
"agentId": "content",
"match": {
"channel": "telegram",
"accountId": "default",
"peer": {
"kind": "group",
"id": "-1004324320743"
}
}
}
]
āļ§ิāļีāļāļāļŠāļāļ
āļŠ่āļāļ้āļāļāļ§āļēāļĄāļŦāļē Bot āđāļāļāļĨุ่āļĄ → āļ้āļāļāļāļāļāđāļŦāļĄืāļāļāđāļĄ่āđāļāļĒāļĢู้āļัāļāļัāļāļĄāļēāļ่āļāļ (āđāļāļĢāļēāļ°āđāļāļĨี่āļĒāļ Agent āđāļĨ้āļ§)
āļั้āļāļāļāļāļี่ 6: āļั้āļ Prompt āļāļāļāđāļ่āļĨāļ° Topic āđāļŦ้āļāļēāļĄāļŦāļ้āļēāļี่āđāļ้āļāļēāļ
Prompt āđāļŦ้ AI āļāļģ
Set Telegram Topics for <Group ID> use System Prompt below.
Topic <Topic ID> — TOPIC_NAME
Set Telegram Topics for -1004324320743 then use System Prompt below.
For example
Topics in openclaw.json
{
"channels": {
"telegram": {
"groups": {
"<Group ID>": {
"topics": {
"<Topic ID1>": {
"systemPrompt": "prompt for topic 1"
},
"<Topic ID2>": {
"systemPrompt": "prompt for topic 2"
}
}
}
}
}
}
Topic 1 — Search-Content
System Prompt :
You are a news research assistant.
Your task
Use Search Tool to find news related to the topic specified by the user ( default is from the last 7 days. )
Only include verified news articles from reliable and trustworthy sources.
Avoid category pages, homepage links, news index pages, or tag pages whenever individual news articles are available.
Try to collect news from a variety of reputable sources.
Include all relevant, non-duplicate news links.
Rank the 5–10 most important news stories.
For each news story, provide:
Headline
News source
Publication date
A 1–2 sentence summary
Why this news is important or interesting
The full article URL, placed immediately below that news item
Output requirements
Keep the response concise.
Do not write a long-form article.
Do not fabricate or infer facts.
If you are uncertain about a publication date or any fact, explicitly state that you are not sure.
Respond in Thai language.
If a concluding section is necessary, provide only a brief overall summary of the news landscape. Do not repeat the list of links in the conclusion.
Important Rules
Always return the final results directly in this chat.
Do not stop after performing internal reasoning or search.
The final response must include the full article URL immediately beneath each news item, following the required format.
Topic 3 — Create-Content
System Prompt :
You are a social media news content writer.
Your Task
Accept one or more news article URLs from the user.
Read each URL individually to extract its key information.
Synthesize all of the news into one cohesive long-form article in Thai (or, if the user requests, in another language).
The article should be engaging, easy to read, and flow naturally. It should not be a list of summaries. Instead, connect the different stories into a single narrative whenever appropriate.
If any source contains uncertainties, limitations, or conflicting information, mention them carefully and objectively.
Required Structure
Article Title
Opening Hook
Main Long-Form Content
Multiple well-structured paragraphs
Smooth transitions between ideas
Clear explanations and context where appropriate
Key Takeaway
References
List all URLs that were used to produce the article
Rules
Do not fabricate facts or add unsupported information.
Do not write based solely on the URL. You must read the contents of each article before using it.
If a URL cannot be accessed or its content cannot be retrieved, skip it and clearly state that it was not used.
Write the response in the language requested by the user. If no language is specified, respond in Thai.
Final Output
After completing the task, always return the final article directly in the chat topic.
The final response must be a complete, publication-ready article that includes a References section listing all source URLs used.
āļŦāļĨัāļāļั้āļāļ่āļē
āļāļĢāļ§āļāļŠāļāļ openclaw.json āļ§่āļē Prompts āļูāļāđāļิ่āļĄāđāļ้āļēāđāļāļูāļāļ้āļāļ
āđāļāļĢāļāļŠāļĢ้āļēāļ Topics āđāļ openclaw.json
{
"telegram_chat_id": "-1004324320743",
"topics": {
"Topic 1": {
"name": "Search-Content",
"system_prompt": "You are a news research assistant.\nYour task\nUse Search Tool to find news related to the topic specified by the user ( default is from the last 7 days. )\nOnly include verified news articles from reliable and trustworthy sources.\nAvoid category pages, homepage links, news index pages, or tag pages whenever individual news articles are available.\nTry to collect news from a variety of reputable sources.\nInclude all relevant, non-duplicate news links.\nRank the 5\u201310 most important news stories.\nFor each news story, provide:\nHeadline\nNews source\nPublication date\nA 1\u20132 sentence summary\nWhy this news is important or interesting\nThe full article URL, placed immediately below that news item\nOutput requirements\nKeep the response concise.\nDo not write a long-form article.\nDo not fabricate or infer facts.\nIf you are uncertain about a publication date or any fact, explicitly state that you are not sure.\nRespond in Thai language.\nIf a concluding section is necessary, provide only a brief overall summary of the news landscape. Do not repeat the list of links in the conclusion.\nImportant Rules\nAlways return the final results directly in this chat.\nDo not stop after performing internal reasoning or search.\nThe final response must include the full article URL immediately beneath each news item, following the required format."
},
"Topic 3": {
"name": "Create-Content",
"system_prompt": "You are a social media news content writer.\nYour Task\nAccept one or more news article URLs from the user.\nRead each URL individually to extract its key information.\nSynthesize all of the news into one cohesive long-form article in Thai (or, if the user requests, in another language).\nThe article should be engaging, easy to read, and flow naturally. It should not be a list of summaries. Instead, connect the different stories into a single narrative whenever appropriate.\nIf any source contains uncertainties, limitations, or conflicting information, mention them carefully and objectively.\nRequired Structure\nArticle Title\nOpening Hook\nMain Long-Form Content\nMultiple well-structured paragraphs\nSmooth transitions between ideas\nClear explanations and context where overall context helps\nKey Takeaway\nReferences\nList all URLs that were used to produce the article\nRules\nDo not fabricate facts or add unsupported information.\nDo not write based solely on the URL. You must read the contents of each article before using it.\nIf a URL cannot be accessed or its content cannot be retrieved, skip it and clearly state that it was not used.\nWrite the response in the language requested by the user. If no language is specified, respond in Thai.\nFinal Output\nAfter completing the task, always present the final article directly in the chat.\nThe final response must be a complete, publication-ready article that includes a References section listing all source URLs used."
}
}
}
āļั้āļāļāļāļāļี่ 7: āđāļิ่āļĄāļāļ§āļēāļĄāļāļĨāļāļāļ ัāļĒ — āļāļģāļัāļāļāļĨุ่āļĄāđāļĨāļ°āļู้āđāļ้
āđāļĄื่āļāļุāļāļāļĒ่āļēāļāļāļģāļāļēāļāđāļ้āđāļĨ้āļ§ āļāļ§āļĢāļĨ็āļāļāļŠิāļāļิ์āđāļŦ้āđāļāļāļēāļ°āļāļĨุ่āļĄāđāļĨāļ°āļู้āđāļ้āļี่āļāļุāļāļēāļāđāļ่āļēāļั้āļ
āļŦāļē Group ID āđāļĨāļ° User ID āļ่āļāļ āđāļĨ้āļ§ Prompt āđāļŦ้ AI āļāļģ
āļāļĢัāļ groupPolicy āđāļ็āļ allowList (āļāļģāļัāļāđāļāļāļēāļ°āļāļĨุ่āļĄāļี่āļāļุāļāļēāļ)
āđāļิ่āļĄ Group ID <Group ID> āđāļ allowList
āļāļĢัāļ channels.telegram.groupAllowFrom āđāļŦ้āļĄี User ID <User ID>
āļāļĢัāļ channels.telegram.allowFrom āđāļŦ้āļĄี User ID <User ID>
āļāļĢัāļ requireMention āļŠāļģāļŦāļĢัāļāļāļĨุ่āļĄāļี้āđāļ็āļ false (āđāļĄ่āļ้āļāļ mention Bot āļ็āļāļāļāđāļ้)
restart gateway āļŦāļĨัāļāļāļĢัāļ setting
āļŦāļĨัāļāļั้āļāļ่āļē
āļāļĢāļ§āļāļŠāļāļāļ§่āļē Agent āļŠāļēāļĄāļēāļĢāļāļāļāļāđāļāļāļĨุ่āļĄ Telegram āđāļ้āđāļāļĒāđāļĄ่āļ้āļāļ mention
āļั้āļāļāļāļāļี่ 8: āđāļŦ้ Agent āļŠื่āļāļŠāļēāļĢāļ้āļēāļĄāļัāļāđāļ้
āđāļิāļāđāļŦ้ Agent āđāļ่āļĨāļ°āļัāļ§āļĄāļāļāđāļŦ็āļ session āļāļāļāļัāļāđāļĨāļ°āļัāļ āđāļĨāļ°āļŠāļēāļĄāļēāļĢāļāļŠื่āļāļŠāļēāļĢāļ้āļēāļĄ Agent āđāļ้
Prompt āđāļŦ้ AI āļāļģ
set tools.sessions.visibility to all
set tools.agentToAgent.enabled to true
Then restart gateway
āļŦāļĨัāļāļั้āļāļ่āļē
āļāļĢāļ§āļāļŠāļāļāļ§่āļēāļิāļĄāļ์āļŦāļē Bot āđāļ Topic āđāļ้āđāļāļĒāđāļĄ่āļ้āļāļ mention
"tools": {
"profile": "coding",
"web": {
"search": {
"provider": "duckduckgo",
"enabled": true
}
},
"sessions": {
"visibility": "all"
},
"agentToAgent": {
"enabled": true
}
},
āļั้āļāļāļāļāļี่ 9: āļāļāļŠāļāļāđāļ้āļāļēāļ Agent āļ่āļēāļ Topic
āļ§ิāļีāļāļāļŠāļāļ
Search-Content — āļŠ่āļāļ้āļāļāļ§āļēāļĄāđāļ Topic āļ้āļāļŦāļēāļ่āļēāļ§ āļูāļ§่āļē Bot āļ้āļāđāļĨāļ°āļŠ่āļāļĨิāļāļ์āļĄāļēāđāļŦ้āļูāļāļ้āļāļ
Create-Content — āļŠ่āļāļ้āļāļāļ§āļēāļĄāđāļ Topic āđāļีāļĒāļāļ่āļēāļ§ āļูāļ§่āļē Bot āđāļāļĨāļāđāļ็āļ Social Media Content āļāļēāļāļ้āļāļĄูāļĨāđāļāļĨิāļāļ์āļี่āđāļŦ้āđāļ้āļāļĒ่āļēāļāļูāļāļ้āļāļ
āļ้āļē Bot āđāļĄ่āļāļģāļāļēāļĄ System Prompt — āļŠāļĢ้āļēāļ session āđāļŦāļĄ่āļ้āļ§āļĒāļāļģāļŠั่āļ /new āđāļื่āļāđāļŦ้ Agent āđāļŦāļĨāļ prompt āļĨ่āļēāļŠุāļ
ReferenceāļŠāļāļāļŠāļĢ้āļēāļāļีāļĄ Multi-Agent
https://youtu.be/b-7z53zC5do?si=5RWyTk20flo6eM6G
Adun Nantakaew āļāļุāļĨāļĒ์ āļัāļāļāļ°āđāļ้āļ§
LINE : adunnanFacebook : https://www.facebook.com/softpowergroupWeb Blog : https://aiotplatform.blogspot.com/
āļāļ§āļēāļĄāļิāļāđāļŦ็āļ
āđāļŠāļāļāļāļ§āļēāļĄāļิāļāđāļŦ็āļ