# Voice Bot Configuration with Groq TTS # Groq AI Configuration (for NLU + TTS) GROQ_API_KEY = "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" # Get free at: https://console.groq.com/keys USE_GROQ_AI = True # Set to False to use basic pattern matching # Groq TTS Configuration (Orpheus by Canopy Labs) GROQ_TTS_MODEL = "canopylabs/orpheus-v1-english" # Orpheus English TTS GROQ_TTS_VOICE = "autumn" # Default voice (female, natural) # Available Groq Orpheus English voices: # Female: autumn, diana, hannah # Male: austin, daniel, troy # # Vocal directions (English only): wrap in brackets, e.g. [cheerful], [whisper] # Note: Input limit is 200 characters per API call (auto-chunked) # Conversation Flow Configuration CONVERSATION_TEMPLATES = { 'greeting': "Hello! I'm your return and exchange assistant. Would you like to process an exchange or a return?", 'ask_exchange_or_return': "Please say 'exchange' if you want to exchange a product, or 'return' if you want to return it.", 'ask_order_id': "Please provide your order ID. You can say something like 'order 123'.", 'ask_reason': "Please tell me the reason for the {request_type}.", 'ask_exchange_preference': "What product would you prefer instead? Please describe what you'd like to exchange it for.", 'confirm_details': "Let me confirm: You want to {request_type} order {order_id} because {reason}. {extra_info}Is this correct?", 'ask_what_wrong': "What did we get wrong?", 'processing': "Perfect! I'm processing your {request_type} request now.", 'exchange_pickup_scheduled': "Your exchange pickup has been scheduled for {pickup_date}.", 'exchange_delivery_scheduled': "Your new product will be delivered by {delivery_date}.", 'return_scheduled': "Your return pickup has been scheduled for {pickup_date}.", 'success': "Your {request_type} request has been successfully processed! Tracking number: {tracking_number}", 'error': "I'm sorry, I didn't understand that. Could you please repeat?", 'goodbye': "Thank you for using our service. Have a great day!" } # Database Configuration DATABASE_INTEGRATION = True # Set to False to disable database updates # API Endpoints DELHIVERY_API_KEY = "your_delhivery_api_key" # For production OPENLEAF_API_KEY = "your_openleaf_api_key" # For production # Return/Exchange Settings DEFAULT_RETURN_DAYS = 7 EXCHANGE_DELIVERY_DAYS = 5