OpenClaw Agent , Sub Agent , Multi Agent

OpenClaw Agent , Sub Agent , Multi Agent

ðŸĶžāļĄāļēāđ€āļĢีāļĒāļ™āļĢู้ OpenClaw Agent , Sub Agent , Multi Agent

 ðŸŒŸāļāļēāļĢāļŠāļĢ้āļēāļ‡ AI Agent āđƒāļ™āļ›ัāļˆāļˆุāļšัāļ™āđ„āļĄ่āđ„āļ”้āļˆāļģāļัāļ”āļ­āļĒู่āđ€āļžีāļĒāļ‡ Agent āļ•ัāļ§āđ€āļ”ีāļĒāļ§āļ—ี่āļĢัāļšāļ„āļģāļŠั่āļ‡āđāļĨāļ°āļ•āļ­āļšāļāļĨัāļšāļœู้āđƒāļŠ้ āđāļ•่āļŠāļēāļĄāļēāļĢāļ–āļ­āļ­āļāđāļšāļšāđƒāļŦ้ Agent āļŠāļēāļĄāļēāļĢāļ– āđāļš่āļ‡āļ‡āļēāļ™ (Delegation) āļŠāļĢ้āļēāļ‡ Sub-Agent āļŠāļģāļŦāļĢัāļšāļ‡āļēāļ™āđ€āļ‰āļžāļēāļ°āļ”้āļēāļ™ āđāļĨāļ°āļ—āļģāļ‡āļēāļ™āļĢ่āļ§āļĄāļัāļ™āđ€āļ›็āļ™ Multi-Agent System

 ðŸŒŸāļāļēāļĢāđƒāļŠ้ OpenClaw āđ€āļžื่āļ­āļ­āļ­āļāđāļšāļšāļĢāļ°āļšāļš Agent āļ•ั้āļ‡āđāļ•่āļĢāļ°āļ”ัāļš Single Agent āđ„āļ›āļˆāļ™āļ–ึāļ‡ Multi-Agent Architecture āļžāļĢ้āļ­āļĄāļāļēāļĢāđ€āļŠื่āļ­āļĄāļ•่āļ­ Tools, Skills, API, Knowledge Base āđāļĨāļ° Automation Workflow

Telegram Channel 

āļ•้āļ­āļ‡ set Telegram channel āđƒāļŦ้āđ€āļĢีāļĒāļšāļĢ้āļ­āļĒāļ่āļ­āļ™


Create the bot token in BotFather

/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 āđ€āļ‚้āļēāļāļĨุ่āļĄ


  1. āđ€āļ›ิāļ” BotFather → āđ€āļĨืāļ­āļ Bot āļ‚āļ­āļ‡āđ€āļĢāļē

  2. āļ•ั้āļ‡āļ„่āļē Allow GroupsEnabled

  3. āļ•ั้āļ‡āļ„่āļē Group PrivacyDisabled (āļˆāļģāđ€āļ›็āļ™āđ€āļžื่āļ­āđƒāļŦ้ Bot āļ­่āļēāļ™āļ‚้āļ­āļ„āļ§āļēāļĄāđƒāļ™āļāļĨุ่āļĄāđ„āļ”้)

  4. āđ€āļžิ่āļĄ 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 āđƒāļ™āļāļĨุ่āļĄāđ€āļ”ีāļĒāļ§āļัāļ™

āļ§ิāļ˜ีāļ—āļģ

  1. āļŠāļĢ้āļēāļ‡ Topic āđƒāļ™āļāļĨุ่āļĄ Telegram (āļœ่āļēāļ™āđāļ­āļ› Telegram)

  2. āļ‚āļ­ 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:

  1. Headline

  2. News source

  3. Publication date

  4. A 1–2 sentence summary

  5. Why this news is important or interesting

  6. 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

  1. Article Title

  2. Opening Hook

  3. Main Long-Form Content

    • Multiple well-structured paragraphs

    • Smooth transitions between ideas

    • Clear explanations and context where appropriate

  4. Key Takeaway

  5. 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

āļ§ิāļ˜ีāļ—āļ”āļŠāļ­āļš

  1. Search-Content — āļŠ่āļ‡āļ‚้āļ­āļ„āļ§āļēāļĄāđƒāļ™ Topic āļ„้āļ™āļŦāļēāļ‚่āļēāļ§ āļ”ูāļ§่āļē Bot āļ„้āļ™āđāļĨāļ°āļŠ่āļ‡āļĨิāļ‡āļ์āļĄāļēāđƒāļŦ้āļ–ูāļāļ•้āļ­āļ‡

  2. Create-Content — āļŠ่āļ‡āļ‚้āļ­āļ„āļ§āļēāļĄāđƒāļ™ Topic āđ€āļ‚ีāļĒāļ™āļ‚่āļēāļ§ āļ”ูāļ§่āļē Bot āđāļ›āļĨāļ‡āđ€āļ›็āļ™ Social Media Content āļˆāļēāļāļ‚้āļ­āļĄูāļĨāđƒāļ™āļĨิāļ‡āļ์āļ—ี่āđƒāļŦ้āđ„āļ”้āļ­āļĒ่āļēāļ‡āļ–ูāļāļ•้āļ­āļ‡

  3. āļ–้āļē Bot āđ„āļĄ่āļ—āļģāļ•āļēāļĄ System Prompt — āļŠāļĢ้āļēāļ‡ session āđƒāļŦāļĄ่āļ”้āļ§āļĒāļ„āļģāļŠั่āļ‡ /new āđ€āļžื่āļ­āđƒāļŦ้ Agent āđ‚āļŦāļĨāļ” prompt āļĨ่āļēāļŠุāļ”





Reference

āļŠāļ­āļ™āļŠāļĢ้āļēāļ‡āļ—ีāļĄ Multi-Agent

https://youtu.be/b-7z53zC5do?si=5RWyTk20flo6eM6G



Adun Nantakaew āļ­āļ”ุāļĨāļĒ์ āļ™ัāļ™āļ—āļ°āđāļ้āļ§

LINE : adunnan

āļ„āļ§āļēāļĄāļ„ิāļ”āđ€āļŦ็āļ™

āđ‚āļžāļŠāļ•์āļĒāļ­āļ”āļ™ิāļĒāļĄāļˆāļēāļāļšāļĨ็āļ­āļāļ™ี้

Open Source IoT Platform

āļ—āļ”āļĨāļ­āļ‡ āļ•ิāļ”āļ•ั้āļ‡āđƒāļŠ้āļ‡āļēāļ™ OpenClaw āļšāļ™ Local PC/Notebook āļ”้āļ§āļĒ Ubuntu

OpenClaw Local AI Models with Ollama