In a Doc's Page Mode, you can select one or more blocks, or select the text content, and click "Ask AI" in the pop-up Format Toolbar to activate AFFiNE AI.
Additionally, after opening a doc, you can click on the "Expand sidebar" in the top right corner, where you will find the chat entry for AFFiNE AI in the sidebar.