> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting under the hood

If you're wanting to develop new agents, agent capabilities, or understand the flow of an AG2 workflow, this is the right section for you.

<Tip>
  This section involves diving into AG2's source code, if that doesn't sound like what you are after, check out our Basic and Advanced concept sections under [User Guide](/docs/user-guide/basic-concepts/installing-ag2).
</Tip>

Sections:

1. Chat workflow with [initiate\_chat](/docs/contributor-guide/how-ag2-works/initiate-chat)

2. How ConversableAgent generates its reply with [generate\_reply](/docs/contributor-guide/how-ag2-works/generate-reply)

3. How to update agent and message state using [hooks](/docs/contributor-guide/how-ag2-works/hooks)

Ready to start building your own agents and tools? Check out our guides for [creating a tool](/docs/contributor-guide/building/creating-a-tool) and [creating an agent](/docs/contributor-guide/building/creating-an-agent).

<div className="edit-url-container">
  <a className="edit-url" href="https://github.com/ag2ai/ag2/edit/main/website/docs/contributor-guide/how-ag2-works/overview.mdx" target="_blank"><Icon icon="pen" iconType="solid" size="13px" /> Edit this page</a>
</div>
