Hook Structure
Last updated
What is Hook Structure?
Each hook is a directory containing a HOOK.md file with metadata and a handler.ts file with the logic to run. The metadata defines which events to listen for and what requirements the hook needs to be eligible.
Free resources to learn Hook Structure
- Official docsHook Structure
More in stage 10: Webhooks
Hook Structure: common questions
Can I learn Hook Structure in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Hook Structure in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Hook Structure tutorial for beginners?
It is lesson 51 of 118 in the free OpenClaw roadmap, in stage 10, Webhooks. If you are new to OpenClaw, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.