--- title: "PreRequest and PreResponse Flow Hooks" slug: "prerequest-and-preresponse-flow-hooks" updated: 2026-09-01T20:20:26Z published: 2026-09-01T20:20:26Z canonical: "documentation.decisions.com/prerequest-and-preresponse-flow-hooks" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # PreRequest and PreResponse Flow Hooks ## Overview **PreRequest** and **PreResponse** Flow Hooks provide additional control over interactions between the platform, LLM providers, and Users. Available in **v10.2** and later, these hooks allow developers to modify or process information at key points in the LLM request and response lifecycle. --- ## PreRequest and PreResponse Flow Hooks - **PreRequest Flow Hooks**: Enable Message History compaction, Prompt modification, and System Prompt modification before being sent to an LLM provider. - **PreResponse Flow Hooks**: Enables Filtering/Post-Processing after an LLM responds but before the response is sent to Users. This update includes the ability to create a new [**AI Tool Flow**](https://documentation.decisions.com/v10/docs/ai-tool-flow) from the Agents Dashboard. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2026-09-01_16h19_42.png) --- ## Feature Changes | Description | Version | Release Date | Developer Tag | | --- | --- | --- | --- | | PreRequest Flow and PreResponse Flow hooks have been added to the platform: - PreRequest enables Message history compaction, prompt modification, and system prompt modification before being sent to an LLM provider. - PreResponse enables filtering/post-processing after an LLM responds but before the response is sent to Users. | 10.2 | September 2026 | [DT-048124] |