Generating Safe Responses with Guidance

implementationChallengeNovember 25, 2025

Prompt Content

Implement the 'Response Generation' module using Guidance to create structured, safe, and empathetic responses. Define a Guidance template for 'mental_health_support' that includes placeholders for resources. Show how the agent uses this template after detecting a medium-to-high mental health risk.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations