Create motivational-agent.py with the code below, or save it directly from your editor.
"""Motivational Coach AgentA Bindu agent that provides motivation, encouragement, and positive inspiration.Helps users stay motivated, overcome challenges, and achieve their goals.Features:- Daily motivation and positive affirmations- Goal setting and achievement strategies- Overcoming procrastination and self-doubt- Web search for inspirational content and success stories- OpenRouter integration with gpt-oss-120bUsage: python motivational_agent.pyEnvironment: Requires OPENROUTER_API_KEY in .env file"""import osfrom bindu.penguin.bindufy import bindufyfrom agno.agent import Agentfrom agno.tools.duckduckgo import DuckDuckGoToolsfrom agno.models.openrouter import OpenRouterfrom dotenv import load_dotenvload_dotenv()# Define your agentagent = Agent( instructions=( "You are a motivational coach and personal development guide. " "Your job is to inspire, encourage, and motivate users to achieve their goals. " "Provide positive affirmations, practical advice for overcoming challenges, " "strategies for success, and help users build confidence and resilience. " "Be empathetic, supportive, and uplifting while maintaining a professional tone. " "Draw inspiration from successful people, psychology, and proven motivational techniques. " "When users face specific challenges, provide actionable steps and encouragement." ), model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY") ), tools=[DuckDuckGoTools()], # optional: for inspirational quotes and success stories)# Configuration# Note: Infrastructure configs (storage, scheduler, sentry, API keys) are now# automatically loaded from environment variables. See .env.example for details.config = { "author": "jerphinasmi24@gmail.com", "name": "motivational_agent", "description": "A motivational coach agent for personal development and goal achievement", "deployment": { "url": "http://localhost:3773", "expose": True, "cors_origins": ["http://localhost:5173"] },}# Handler functiondef handler(messages: list[dict[str, str]]): """Process messages and return agent response. Args: messages: List of message dictionaries containing conversation history Returns: Agent response result """ result = agent.run(input=messages) return result# Bindu-fy itbindufy(config, handler)
# Clone the Bindu repositorygit clone https://github.com/GetBindu/Bindu# Navigate to frontend directorycd frontend# Install dependenciesnpm install# Start frontend development servernpm run dev