--- title: What's new in v2? slug: p9qd5098 canonical_url: https://docs.coveo.com/en/p9qd5098/ collection: coveo-for-agentforce source_format: adoc --- # What's new in v2? The release of [Coveo for Agentforce 2.0](https://docs.coveo.com/en/p98d0420/) introduces new features and improvements that enhance the user experience and provide greater flexibility. The key highlights are: * **Flex prompt template support for the Coveo Passage Retrieval API action** You can now [create a custom flex prompt template](https://docs.coveo.com/en/p5fa9004#create-a-custom-prompt-template-action-recommended) to deploy the **Coveo Passage Retrieval API** action. This enhancement provides greater flexibility and control over the action's behavior, allowing you to tailor the interaction flow to better suit your specific use cases and requirements. ![PRAPI flex prompt template example | Coveo for Agentforce](https://docs.coveo.com/en/assets/images/coveo-for-agentforce/sample-prapi-flex-prompt-template-long.png) * **Custom context support for the Coveo Passage Retrieval API action** You can now create a custom Apex class to send [additional context](https://docs.coveo.com/en/p8pb4190/) such as [case record context](https://docs.coveo.com/en/p93f0222/) to the Coveo Passage Retrieval API. This enhancement allows your AI agents to provide more relevant and personalized responses based on the specific context of each interaction. ![Case record context example | Coveo for Agentforce](https://docs.coveo.com/en/assets/images/coveo-for-agentforce/prapi-case-record-context-example.png)