{
  "source_file": "0930",
  "source_platform": "Medium",
  "author": "Ivo Bernardo",
  "title_listed": "Building a Personal AI Agent in a couple of Hours",
  "keywords": "",
  "domain": "大模型算法",
  "content_type": "深度技术解析",
  "is_paid_flag": "否",
  "url": "https://towardsdatascience.com/building-a-personal-ai-agent-in-a-couple-of-hours/",
  "publish_date": "2026-03-31",
  "corpus_stage": "",
  "notes": "",
  "id": "7e9df354e991",
  "collected_at": "2026-10-02T05:35:34",
  "title": "Building a Personal AI Agent in a couple of Hours | Towards Data Science",
  "body_markdown": "![Revisit consent button](../images/body-df29beacd7496220cc94.svg)\nWe value your privacy\nWe use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking \"Accept All\", you consent to our use of cookies.\nCustomise Reject All Accept All\nCustomise Consent Preferences ![](../images/body-2159bb67f3de8ad870eb.svg)\nWe use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.\nThe cookies that are categorised as \"Necessary\" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... Show more\nNecessaryAlways Active\nNecessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.\n  * Cookie\nBCTempID\n  * Duration\n10 minutes\n  * Description\nNo description available.\n\n\n  * Cookie\n__cf_bm\n  * Duration\n1 hour\n  * Description\nThis cookie, set by Cloudflare, is used to support Cloudflare Bot Management. \n\n\n  * Cookie\nAWSALBCORS\n  * Duration\n7 days\n  * Description\nAmazon Web Services set this cookie for load balancing.\n\n\n  * Cookie\n_cfuvid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to track users across sessions to optimize user experience by maintaining session consistency and providing personalized services\n\n\n  * Cookie\nli_gc\n  * Duration\n6 months\n  * Description\nLinkedin set this cookie for storing visitor's consent regarding using cookies for non-essential purposes.\n\n\n  * Cookie\n__hssrc\n  * Duration\nsession\n  * Description\nThis cookie is set by Hubspot whenever it changes the session cookie. The __hssrc cookie set to 1 indicates that the user has restarted the browser, and if the cookie does not exist, it is assumed to be a new session.\n\n\n  * Cookie\n__hssc\n  * Duration\n1 hour\n  * Description\nHubSpot sets this cookie to keep track of sessions and to determine if HubSpot should increment the session number and timestamps in the __hstc cookie.\n\n\n  * Cookie\nwpEmojiSettingsSupports\n  * Duration\nsession\n  * Description\nWordPress sets this cookie when a user interacts with emojis on a WordPress site. It helps determine if the user's browser can display emojis properly.\n\n\n  * Cookie\nBCSessionID\n  * Duration\n1 year 1 month 4 days\n  * Description\nBlueconic sets this cookie as a unique identifier for the BlueConic profile.\n\n\n  * Cookie\n_octo\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nlogged_in\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\n__Secure-YEC\n  * Duration\npast\n  * Description\nYouTube sets this cookie to stores the user's video player preferences using embedded YouTube video\n\n\n  * Cookie\n__eoi\n  * Duration\n6 months\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTGCORS\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\nlogin-status-p\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTG\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\ncsrf_token\n  * Duration\nsession\n  * Description\nNo description available.\n\n\n  * Cookie\ntoken_v2\n  * Duration\n1 day\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nD\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nPHPSESSID\n  * Duration\nsession\n  * Description\nThis cookie is native to PHP applications. The cookie stores and identifies a user's unique session ID to manage user sessions on the website. The cookie is a session cookie and will be deleted when all the browser windows are closed.\n\n\n  * Cookie\nVISITOR_PRIVACY_METADATA\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to store the user's cookie consent state for the current domain. \n\n\n  * Cookie\ncookietest\n  * Duration\nsession\n  * Description\nThe cookietest cookie is typically used to determine whether the user's browser accepts cookies, essential for website functionality and user experience.\n\n\n  * Cookie\n__Host-airtable-session\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\n__Host-airtable-session.sig\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\nm\n  * Duration\n1 year 1 month 4 days\n  * Description\nStripe sets this cookie for fraud prevention purposes. It identifies the device used to access the website, allowing the website to be formatted accordingly.\n\n\n  * Cookie\nBIGipServer*\n  * Duration\nsession\n  * Description\nMarketo sets this cookie to collect information about the user's online activity and build a profile about their interests to provide advertisements relevant to the user. \n\n\n  * Cookie\n__cfruid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to identify trusted web traffic.\n\n\n  * Cookie\n_GRECAPTCHA\n  * Duration\n6 months\n  * Description\nGoogle Recaptcha service sets this cookie to identify bots to protect the website against malicious spam attacks.\n\n\n  * Cookie\n__Secure-YNID\n  * Duration\n6 months\n  * Description\nGoogle cookie used to protect user security and prevent fraud, especially during the login process.\n\n\n  * Cookie\ncookieyes-consent\n  * Duration\n1 year\n  * Description\nCookieYes sets this cookie to remember users' consent preferences so that their preferences are respected on subsequent visits to this site. It does not collect or store any personal information about the site visitors.\n\n\nFunctional\nFunctional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.\n  * Cookie\nlidc\n  * Duration\n1 day\n  * Description\nLinkedIn sets the lidc cookie to facilitate data center selection.\n\n\n  * Cookie\nbrw\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nbrwConsent\n  * Duration\n5 minutes\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nWMF-Uniq\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nloom_anon_comment\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nloom_referral_video\n  * Duration\nsession\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nVISITOR_INFO1_LIVE\n  * Duration\n6 months\n  * Description\nA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.\n\n\n  * Cookie\nyt-remote-connected-devices\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nytidb::LAST_RESULT_ENTRY_KEY\n  * Duration\nNever Expires\n  * Description\nThe cookie ytidb::LAST_RESULT_ENTRY_KEY is used by YouTube to store the last search result entry that was clicked by the user. This information is used to improve the user experience by providing more relevant search results in the future.\n\n\n  * Cookie\nyt-remote-device-id\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-name\n  * Duration\nsession\n  * Description\nThe yt-remote-session-name cookie is used by YouTube to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\nyt-remote-fast-check-period\n  * Duration\nsession\n  * Description\nThe yt-remote-fast-check-period cookie is used by YouTube to store the user's video player preferences for embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-app\n  * Duration\nsession\n  * Description\nThe yt-remote-session-app cookie is used by YouTube to store user preferences and information about the interface of the embedded YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-available\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-available cookie is used to store the user's preferences regarding whether casting is available on their YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-installed\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-installed cookie is used to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\ncp_session\n  * Duration\n3 months\n  * Description\nCodepen sets this cookie for Help systems found in the website.\n\n\n  * Cookie\nloid\n  * Duration\n1 year 1 month 4 days\n  * Description\nThis cookie is set by the Reddit. The cookie enables the sharing of content from the website onto the social media platform.\n\n\nAnalytics\nAnalytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.\n  * Cookie\n__hstc\n  * Duration\n6 months\n  * Description\nHubspot set this main cookie for tracking visitors. It contains the domain, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).\n\n\n  * Cookie\nhubspotutk\n  * Duration\n6 months\n  * Description\nHubSpot sets this cookie to keep track of the visitors to the website. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.\n\n\n  * Cookie\n_ga\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.\n\n\n  * Cookie\n_ga_*\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to store and count page views.\n\n\n  * Cookie\n__Host-psifi.analyticsTrace\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n__Host-psifi.analyticsTraceV2\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n_gh_sess\n  * Duration\nsession\n  * Description\nGitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.\n\n\n  * Cookie\nYSC\n  * Duration\nsession\n  * Description\nYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.\n\n\n  * Cookie\najs_anonymous_id\n  * Duration\n1 year\n  * Description\nThis cookie is set by Segment to count the number of people who visit a certain site by tracking if they have visited before.\n\n\n  * Cookie\nvuid\n  * Duration\n1 year 1 month 4 days\n  * Description\nVimeo installs this cookie to collect tracking information by setting a unique ID to embed videos on the website. \n\n\nPerformance\nPerformance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.\n  * Cookie\nAWSALB\n  * Duration\n7 days\n  * Description\nAWSALB is an application load balancer cookie set by Amazon Web Services to map the session to the target.\n\n\n  * Cookie\nacq\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nacq.sig\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nptc\n  * Duration\n2 years\n  * Description\nNo description available.\n\n\nAdvertisement\nAdvertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.\n  * Cookie\nmuc_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to collect user behaviour and interaction data to optimize the website.\n\n\n  * Cookie\nguest_id_marketing\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\nguest_id_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\npersonalization_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to integrate and share features for social media and also store information about how the user uses the website, for tracking and targeting.\n\n\n  * Cookie\nguest_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor. It registers if a user is signed in to the Twitter platform and collects information about ad preferences.\n\n\n  * Cookie\nbcookie\n  * Duration\n1 year\n  * Description\nLinkedIn sets this cookie from LinkedIn share buttons and ad tags to recognize browser IDs.\n\n\n  * Cookie\n__Secure-ROLLOUT_TOKEN\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to manage feature rollout and experimentation. It helps Google control which new features or interface changes are shown to users as part of testing and staged rollouts, ensuring consistent experience for a given user during an experiment.\n\n\n  * Cookie\nyt.innertube::nextId\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nyt.innertube::requests\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nsession_tracker\n  * Duration\nsession\n  * Description\nThis cookie is set by the Reddit. This cookie is used to identify trusted web traffic. It also helps in adverstising on the website.\n\n\n  * Cookie\nedgebucket\n  * Duration\nsession\n  * Description\nReddit sets this cookie to save the information about a log-on Reddit user, for the purpose of advertisement recommendations and updating the content.\n\n\n  * Cookie\ndid\n  * Duration\n1 year\n  * Description\nArbor sets this cookie to show targeted ads to site visitors.This cookie expires after 2 months or 1 year.\n\n\nUncategorised\nOther uncategorised cookies are those that are being analysed and have not been classified into a category as yet.\nNo cookies to display.\nReject All Save My Preferences Accept All\nToggle Search[](https://towardsdatascience.com/)Toggle Mobile Navigation\n[](https://towardsdatascience.com/)\nPublish AI, ML & data-science insights to a global community of data professionals.\nSign in[Submit an Article](https://write.insightmediagroup.io)\n[Latest](https://towardsdatascience.com/latest/)[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Newsletter](https://towardsdatascience.com/tag/the-variable/)[ShipAI](https://towardsdatascience.com/shipai/)\n* * *\n[Write For TDS](https://towardsdatascience.com/submissions/)\n[LinkedIn](https://www.linkedin.com/company/towards-data-science/)[X](https://x.com/TDataScience)Toggle Search\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\n# Building a Personal AI Agent in a couple of Hours\nWe are living in a Brave New World and prototyping just got fun\n[Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\nMarch 31, 202614 min read\n![](../images/000.png)\nFernão's Home Page - Image by Author\nI’ve been so surprised by how fast individual builders can now ship real and useful prototypes.\nTools like Claude Code, Google AntiGravity, and the growing ecosystem around them have crossed a threshold: you can inspect what others are building online and realize just how fast you can build today.\nOver the past weeks, I’ve started reserving one to two hours a day exclusively for building with my AI-first stack:\n  * Google AntiGravity\n  * Google Gemini Pro\n  * Claude models accessed through AntiGravity\n\n\nThis setup has fundamentally changed how I think about prototyping, iteration speed, and what a “personal AI agent” can realistically do today. More importantly, it pulled me back into hands-on coding and building, something I had personally sacrificed once my role at DareData shifted toward management and orchestration rather than execution.\nLearn this step by step with the interactive [AI Engineer](https://roadmap.sh/ai-engineer) roadmap.\nIndividually, this revolution has been a blessing someone who was always going to drift toward management roles. It removes the trade-off I had accepted: that growing a company meant abandoning building entirely. I no longer have to choose between building and managing, they actually reinforce each other.\nBut, there is a broader implication here for people who are “just” developing. If AI agents increasingly handle execution, then pure implementation stops being enough. Developers will be pushed (whether they want it or not) toward coordination, decision-making, and.. management — something that individual contributors hate by heart. In other words, management skills become part of the technical stack, and AI agents are part of the context being managed.\nWhat surprised me most is how transferable my existing management skills turned out to be:\n  * Guiding the agent rather than micromanaging it\n  * Asking for outcomes instead of instructions\n  * Mapping, prioritizing, and pointing the grey areas\n\n\nIn practice, I am managing and coordinating a virtual employee. I can deeply influence some parts of its work while remaining almost entirely ignorant of others — and that is not a bug, it is a big feature. In my personal AI assistant, for example, I can reason clearly about the backend, yet remain mostly clueless about the frontend. The system still works, because my role is no longer to know everything, but to steer the system in the right direction.\nThis is directly analogous to how I coordinate people inside the company. As DareData grows, we do not hire replicas of founders. We intentionally hire people who can do things we cannot do, and, over time, things we will never learn deeply enough to do well.\n![](../images/001.png)\nCurrent Building Stack — Google AntiGravity - Image by Author\nEnough self-reflection on management. Let’s look at what I’m building because that’s what you are here for:\n  * A personal AI assistant designed around my actual routines, not a generic productivity template. It adapts to how I work, think, and make decisions.\n  * A mobile app that recommends one music album per week, without a traditional recommendation system. No comfort-zone reinforcement and that helps me expand my listening zones.\n  * A mobile game built around a single character progressing through layered dungeons, developed primarily as a creative playground rather than a commercial product.\n\n\nThe interesting part is that, while I’m comfortable coding most of the backend, front-end development is not a skill I have — and if I were forced to do it myself, these projects would slow down from hours to days, or simply never ship.\nThat constraint is now largely irrelevant. With this new stack, imagination becomes the real bottleneck. The cost of “not knowing” an entire layer has collapsed.\nSo, in the rest of this post, I’ll walk through my personal AI assistant: what it does, how it’s structured, and why it works for me. My goal is to open-source it once it stabilizes, so others can adapt it to their own workflows. It is currently very specific to my life, but that specificity is intentional, and making it more general is part of the experiment.\n* * *\n## Meet Fernão\nFernão Lopes was a chronicler of the Portuguese monarchy. I chose a Portuguese historical figure deliberately — Portuguese people have a habit of attaching historical names to almost anything. If that sounds stereotypically Portuguese, that’s intentional.\nFernão is Portuguese but actually speaks English, call it a modern day chronicler for the 21st century.\n![](../images/body-da14db5264aa1192cca1.png)\nFernão Lopes, Chronicler of the Portuguese Kingdom - Image Source: Wikimedia Foundation\nAt this point, I’m doing two things I usually avoid: anthropomorphizing AI and leaning into a very Portuguese naming instinct. Consider it a harmless sign of me turning older.\nThat aside, what does Fernão actually do for me? The best place to start is his front page.\n![](../images/body-660886084541d997898c.png)\nFernão’s Front Page - Image by Author\nFernão is a cool-looking dude who currently handles five tasks:\n  * **Day Schedule** : plans my day by pulling together calendars, to-dos, and objectives, then turning them into something I can follow.\n  * **Writing Assistant** : helps me review and clean up drafts of blog posts and other texts.\n  * **Portfolio Helper** : suggests companies or ETFs to add based on rebalancing needs and what’s going on in the macro world (without pretending to be a crystal ball).\n  * **Financial Organizer** : extracts spending from my bank statements and uploads everything into the Cashew app, saving me from yet another task that took me about 3 to 4 hours monthly.\n  * **Subscriptions & Discounts**: keeps track of all my subscriptions and surfaces discounts or benefits I probably have but never remember to use.\n\n\nIn this post, I’ll focus on the Day Schedule app.\nAt the moment, Fernão’s **Day Schedule** does three simple things:\n  * Fetches my calendar, including all scheduled meetings\n  * Pulls my to-dos from Microsoft To Do\n  * Retrieves my personal Key Results from Notion\n\n\nAll of this is connected through APIs. The idea is straightforward: every day, Fernão looks at my constraints, priorities, and commitments, then generates the best possible schedule for me.\n![](../images/body-974e90d942044cc641c0.png)\nFernão’s Current Powers - Image by Author\nTo generate a schedule in the front-end is pretty easy (all the front-end was vibe coded). Here is the generate schedule button:\n![](../images/body-b53ab0193f9f6adc4f4e.png)\nGenerate Schedule for a Specific Day - Image by Author\nOnce I hit Generate Schedule, Fernão starts cooking in the background:\n![](../images/body-a8fcc1c951fd6f4d7089.png)\nFernão is Generating a Schedule - Image by Author\nThe steps are then, in order: fetching my calendar, tasks, and Notion data.\nThe next point is also where basic coding literacy really starts to matter, not because everything the following code does not work, but because you need to understand  _what_ is happening and  _where_ things may eventually break or need improvement.\nLet’s start with the calendar fetch. At the moment, this is handled by a single, gigantic function created by Claude that is **completely unoptimized**.\npython\n\n```\ndef get_events_for_date(target_date=None):\n    \"\"\"\n    Fetches events for a specific date from Google Calendar via ICS feeds.\n    \n    Args:\n        target_date: datetime.date object for the target day. If None, uses today.\n    \n    Returns a list of event dictionaries.\n    \"\"\"\n    # Hardcoded calendar URLs (not using env var to avoid placeholder issues)\n    CALENDAR_URLS = [\n        'cal1url',\n        'call2url'\n    ]\n    \n    LOCAL_TZ = os.getenv('TIMEZONE', 'Europe/Lisbon')\n    \n    # Get timezone\n    local = tz.gettz(LOCAL_TZ)\n    \n    # If no target date provided, use today\n    if target_date is None:\n        target_date = datetime.now(local).date()\n    \n    # Create datetime for the target day boundaries\n    day_start = datetime.combine(target_date, datetime.min.time()).replace(tzinfo=local)\n    day_end = day_start + timedelta(days=1)\n    \n    # Debug: Print the date range we're checking\n    print(f\"\\n[Debug] Checking calendars for date: {target_date.strftime('%Y-%m-%d')}\")\n    print(f\"  Start: {day_start.strftime('%Y-%m-%d %H:%M %Z')}\")\n    print(f\"  End: {day_end.strftime('%Y-%m-%d %H:%M %Z')}\")\n    print(f\"  Timezone: {LOCAL_TZ}\")\n    \n    all_events = []\n    \n    # Fetch from each calendar\n    for idx, cal_url in enumerate(CALENDAR_URLS, 1):\n        calendar_name = f\"Calendar {idx}\"\n        print(f\"\\n[Debug] Fetching {calendar_name}...\")\n        \n        try:\n            # Load calendar from ICS URL with adequate timeout\n            r = requests.get(cal_url, timeout=30)\n            r.raise_for_status()\n            cal = Calendar(r.text)\n            \n            events_found_this_cal = 0\n            total_events_in_cal = len(list(cal.events))\n            print(f\"  Total events in {calendar_name}: {total_events_in_cal}\")\n            \n            # Use timeline to efficiently filter events for target day's date range\n            # Convert local times to UTC for timeline filtering\n            day_start_utc = day_start.astimezone(timezone.utc)\n            day_end_utc = day_end.astimezone(timezone.utc)\n            \n            # Get events in target day's range using timeline\n            days_timeline = cal.timeline.overlapping(day_start_utc, day_end_utc)\n            \n            for e in days_timeline:\n                if not e.begin:\n                    continue\n                    \n                # Get event start time\n                start = e.begin.datetime\n                if start.tzinfo is None:\n                    start = start.replace(tzinfo=timezone.utc)\n                \n                # Convert to local timezone\n                start_local = start.astimezone(local)\n                \n                # Debug: Print first few events to see dates\n                if events_found_this_cal < 3:\n                    print(f\"  Event: '{e.name}' at {start_local.strftime('%Y-%m-%d %H:%M')}\")\n                \n                # Get end time\n                end = e.end.datetime if e.end else None\n                end_local = end.astimezone(local) if end else None\n                \n                all_events.append({\n                    \"title\": e.name,\n                    \"start\": start_local.strftime(\"%H:%M\"),\n                    \"end\": end_local.strftime(\"%H:%M\") if end_local else None,\n                    \"location\": e.location or \"\",\n                    \"description\": e.description or \"\"\n                })\n                events_found_this_cal += 1\n            \n            print(f\"  [OK] Found {events_found_this_cal} event(s) for target day in {calendar_name}\")\n            \n        except requests.exceptions.RequestException as e:\n            print(f\"  [X] Network error fetching {calendar_name}: {str(e)}\")\n            continue\n        except Exception as e:\n            print(f\"  [X] Error processing {calendar_name}: {type(e).__name__}: {str(e)}\")\n            continue\n    \n    # Sort by start time\n    all_events.sort(key=lambda x: x[\"start\"])\n    \n    # Print all events in detail\n    if all_events:\n        print(f\"\\n[Google Calendar] Found {len(all_events)} event(s) for {target_date.strftime('%Y-%m-%d')}:\")\n        print(\"-\" * 60)\n        for event in all_events:\n            time_str = f\"{event['start']}-{event['end']}\" if event['end'] else event['start']\n            location_str = f\" @ {event['location']}\" if event['location'] else \"\"\n            print(f\"  {time_str} | {event['title']}{location_str}\")\n        print(\"-\" * 60)\n    else:\n        print(f\"\\n[Google Calendar] No events for {target_date.strftime('%Y-%m-%d')}\")\n    \n    return all_events\n```\n\nAs a Python developer, all the `print` statements give me the ick. But that’s a problem for the next phase of Fernão: refactoring and optimizing the code once the product logic is solid.\nThis is also where I really see the  _human + AI_ dynamic working. I can immediately spot several ways to improve this function (reduce verbosity, cut unnecessary latency, clean up the flow) but doing that well still requires time, judgment, and intent. AI helps me move fast; it doesn’t replace the need to know what  _extraordinary_ looks like.\nFor now, I haven’t spent much time optimizing it, and that’s a conscious choice. Despite its rough edges, the function does exactly what it needs to do: it pulls data from my calendars and feeds the meeting information into Fernão, enabling everything that comes next.\nNext, Fernão pulls my tasks from Microsoft To Do. This is where my daily to-dos live (the small, concrete things that need to get done and that give structure to a specific day). All of this is configured directly in the Microsoft To Do app, which is a core part of my daily workflow.\nIf you’re curious about the broader productivity system behind this, I’ve written about it in a related post on the brother of this blog (Wait a Day) linked [below](https://waitaday.substack.com/p/on-productivity).\nSo, let’s look at another verbosed function:\npython\n\n```\ndef get_tasks(target_date=None):\n    \"\"\"\n    Fetches tasks from Microsoft To Do for a specific date (tasks due on or before that date).\n    \n    Args:\n        target_date: datetime.date object for the target day. If None, uses today.\n    \n    Returns a list of task dictionaries.\n    \"\"\"\n    CLIENT_ID = os.getenv('MS_CLIENT_ID', 'CLIENT_ID_KEY')\n    AUTHORITY = \"https://login.microsoftonline.com/consumers\"\n    SCOPES = ['Tasks.ReadWrite', 'User.Read']\n    \n    # Setup persistent token cache\n    cache = SerializableTokenCache()\n    cache_file = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '.token_cache.bin')\n    \n    if os.path.exists(cache_file):\n        with open(cache_file, 'r') as f:\n            cache.deserialize(f.read())\n    \n    # Authentication with persistent cache\n    app = PublicClientApplication(CLIENT_ID, authority=AUTHORITY, token_cache=cache)\n    accounts = app.get_accounts()\n    \n    result = None\n    if accounts:\n        result = app.acquire_token_silent(SCOPES, account=accounts[0])\n        if not result or \"access_token\" not in result:\n            for account in accounts:\n                app.remove_account(account)\n            result = None\n    \n    if not result:\n        flow = app.initiate_device_flow(scopes=SCOPES)\n        if \"user_code\" not in flow:\n            print(f\"[MS To Do] Failed to create device flow: {flow.get('error_description', 'Unknown error')}\")\n            return []\n        if \"message\" in flow:\n            print(flow['message'])\n        result = app.acquire_token_by_device_flow(flow)\n\n    if not result or \"access_token\" not in result:\n        print(f\"[MS To Do] Authentication failed: {result.get('error_description', 'No access token') if result else 'No result'}\")\n        return []\n    headers = {\"Authorization\": f\"Bearer {result['access_token']}\"}\n    \n    # Get date boundaries for target date\n    # If no target date provided, use today\n    if target_date is None:\n        from datetime import date\n        target_date = date.today()\n    \n    # Convert date to datetime in UTC for comparison\n    now = datetime.now(timezone.utc)\n    target_day_end = datetime.combine(target_date, datetime.max.time()).replace(tzinfo=timezone.utc)\n    \n    # Fetch all lists\n    lists_r = requests.get(\"https://graph.microsoft.com/v1.0/me/todo/lists\", headers=headers)\n    if lists_r.status_code != 200:\n        return []\n    \n    lists_res = lists_r.json().get(\"value\", [])\n    all_tasks = []\n    \n    # Fetch tasks from all lists with server-side filtering\n    for task_list in lists_res:\n        list_id = task_list[\"id\"]\n        list_name = task_list[\"displayName\"]\n        \n        # Simple filter - just get incomplete tasks\n        params = {\"$filter\": \"status ne 'completed'\"}\n        \n        tasks_r = requests.get(\n            f\"https://graph.microsoft.com/v1.0/me/todo/lists/{list_id}/tasks\",\n            headers=headers,\n            params=params\n        )\n        \n        if tasks_r.status_code != 200:\n            continue\n        \n        tasks = tasks_r.json().get(\"value\", [])\n        \n        # Filter and transform tasks\n        for task in tasks:\n            due_date_obj = task.get(\"dueDateTime\")\n            \n            if not due_date_obj:\n                continue\n                \n            due_date_str = due_date_obj.get(\"dateTime\")\n            if not due_date_str:\n                continue\n            \n            try:\n                due_date = datetime.fromisoformat(due_date_str.split('.')[0])\n                if due_date.tzinfo is None:\n                    due_date = due_date.replace(tzinfo=timezone.utc)\n                \n                # Include all tasks due on or before the target date\n                if due_date <= target_day_end:\n                    # Determine status based on target date\n                    target_day_start = datetime.combine(target_date, datetime.min.time()).replace(tzinfo=timezone.utc)\n                    \n                    if due_date < target_day_start:\n                        status = \"OVERDUE\"\n                    elif due_date <= target_day_end:\n                        status = f\"DUE {target_date.strftime('%Y-%m-%d')}\"\n                    else:\n                        status = \"FUTURE\"\n                    \n                    all_tasks.append({\n                        \"list\": list_name,\n                        \"title\": task[\"title\"],\n                        \"due\": due_date.strftime(\"%Y-%m-%d\"),\n                        \"importance\": task.get(\"importance\", \"normal\"),\n                        \"status\": status\n                    })\n            except Exception as e:\n                continue\n    \n    # Print task summary\n    if all_tasks:\n        print(f\"[MS To Do] {len(all_tasks)} task(s) for {target_date.strftime('%Y-%m-%d')} or overdue\")\n    else:\n        print(f\"[MS To Do] No tasks due on {target_date.strftime('%Y-%m-%d')} or overdue\")\n    \n    # Save token cache for next run\n    if cache.has_state_changed:\n        with open(cache_file, 'w') as f:\n            f.write(cache.serialize())\n    \n    return all_tasks\n```\n\nThis function retrieves a full list of my tasks for the current day (and overdue from previous days) — here’s an example of how they look in to-do:\n![](../images/body-96fa82e50812e8aaf2b0.png)\nExample of Tasks in the To-Do App - Image by Author\nAfter pulling tasks from To Do, I also want Fernão to understand  _where I’m trying to go_ , not just what’s on today’s list. For that, it fetches my objectives directly from a Notion page where I have the key results for my year.\nHere’s an example of how those objectives are structured:\n  * the first column shows my baseline at the start of the year,\n  * the last column defines the target I want to reach,\n  * and the column on the right tracks my current progress.\n\n\nThe sample below include how many blog posts I want to write for you this year, as well as the total number of books I aim to sell across my three titles.\nThis gives Fernão broader context on what to priority in the tasks, as you’ll see in the prompt to create the schedule.\n![](../images/body-29ea1e034704c0120956.png)\nPersonal Objectives Example - Image by Author\nBtw, while writing this post, I ended up adding a small widget to the app. If we’re building a personal assistant, it might as well have some personality.\nSo I asked Gemini:\n> _“Can you add a fun animation while the app is retrieving calendar events, checking to-dos, and pulling Notion data? Maybe a small widget of Fernão stirring a pot, with the caption_ ‘Fernão is cooking’ _.”_\n![](../images/body-ed21f915a461dff05073.png)\nFernão is cooking - Image by Author\nOnce this round finishes, tasks and calendar events are successfully collected and displayed in Fernão’s front end (a sample of the tasks and meetings for my day is shown below).\n![](../images/body-8f0196522cc2c6e6f8b1.png)\nTasks and Calendar Events fetched by Fernao - Image by Author\nAnd now the fun part: with calendars, tasks, and objectives in hand, Fernão composes my entire day into a single, magical plan:\ntext\n\n```\n07:30-09:30 | Gym\n09:30-09:40 | Check Timesheets on Odoo (Due: 2026-02-04)\n09:40-09:55 | Review Tasks in To-Do - [Organization Task] (Due: 2026-02-04)\n09:55-10:15 | Read Feedly Stuff - [News Catchup] (Due: 2026-02-04)\n10:15-10:30 | Write culture doc, inspiration: https://pt.slideshare.net/slideshow/culture-1798664/1798664 (Due: 2026-02-04)\n10:30-10:45 | Answer LinkedIns - [Organization Task] (Due: 2026-02-04)\n10:45-11:00 | Check Looker (Due: 2026-02-04)\n11:00-11:30 | This Week in AI Post (Due: 2026-02-04)\n11:30-12:00 | Prepare Podcast Decoding AI\n12:00-13:00 | Podcast Decoding AI - Ivo Bernardo, DareData (Event)\n13:00-14:00 | Lunch Break\n14:00-14:30 | Candidate 1 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n14:30-18:00 | Prepare DareData State of the Union\n18:00-18:30 | Candidate 2 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n18:30-19:00 | Candidate 3 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n19:00-19:30 | Candidate 4 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n19:30-20:00 | Candidate 5 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n20:00-20:15 | Check Insider Trading Signals for Stock Ideas https://finviz.com/insidertrading?tc=1 (Overdue)\n20:15-20:30 | Marketing Timeline (Overdue)\n20:30-21:00 | Dinner Break\n21:00-22:00 | Ler\n22:00-22:15 | Close of Day - Review and prep for tomorrow\n```\n\nThis is one of those moments that genuinely feels a bit magical. Not because the technology is opaque, but because the outcome is so clean. A messy mix of meetings, tasks, and long-term goals turns into a day I can actually execute.\nWhat makes it even more interesting is how simple the final step is. After all the heavy lifting is done in the background (calendar events, to-dos, objectives), I don’t orchestrate a complex pipeline or chain of prompts. I use a single prompt.\nThat one prompt takes everything Fernão knows about my constraints and priorities and turns it into the day you’re about to see.\ntext\n\n```\nname: daily_schedule\ndescription: Generate a daily schedule based on calendar events and tasks\nmodel: gemini-2.5-flash-lite\ntemperature: 0.3\nmax_tokens: 8192\n```\n\ntext\n\n```\nvariables:\n  - date_context\n  - events_str\n  - tasks_str\n  - context\n  - todo_context\n  - auto_context\n  - currently_reading\n  - notion_context\n  - is_today\ntemplate: |\n  You are my personal AI scheduling assistant. Help me plan my day!\n  **TARGET DATE:** Planning for {date_context}\n  **EVENTS (Fixed):**\n  {events_str}\n  **TASKS TO SCHEDULE:**\n  {tasks_str}\n  **MY CONTEXT:**\n  {context}\n  **TASK CONTEXT (how long tasks typically take):**\n  {todo_context}\n  **AUTO-LEARNED CONTEXT:**\n  {auto_context}\n  **CURRENTLY READING:**\n  {currently_reading}\n  **RESULTS & OBJECTIVES (from Notion):**\n  {notion_context}\n  **SCHEDULING RULES:**\n  1. **Cannot schedule tasks during calendar events** - events are fixed\n  2. **Mandatory breaks:**\n     - Lunch: 12:30-13:30 (reserve when possible)\n     - Dinner: 20:30-21:00\n     - Playing with my cat: 45-60 minutes somewhere scattered around the day\n  3. **Task fitting:** Intelligently fit tasks between events based on available time\n  4. **Time estimates:** Use the task context to estimate how long each task will take\n  5. **Working hours:** 09:30 to 22:00\n  6. **Start the schedule:** {is_today}\n  \n  **YOUR JOB:**\n  1. Create a complete hourly schedule for {date_context}\n  2. Fit all tasks between events and breaks\n  3. **Prioritize tasks based on my Results & Objectives from Notion** - focus on what matters most\n  4. Be conversational - if you need more info about a task, ask me!\n  5. **Save learnings:** If I give you context about tasks, acknowledge it and say you'll remember it\n  **FORMAT:**\n  Start with a friendly greeting, then provide the schedule in this format:\n  ```\n  09:30-10:00 | Task/Event\n  10:00-11:00 | Task/Event\n  ...\n  ```\n  After the schedule, ask if I need any adjustments or if you need clarification on any tasks.\n  Generate my day's schedule now, thanks!\n```\n\nAnd with this, Fernão is definitely cooking:\n![](../images/body-b9b54450de32cb0a43e1.png)\nFernão is Cooking again - Image by Author\nThis has been a genuinely fun system to build. I’ll keep evolving Fernão, giving him new responsibilities, breaking things, fixing them, and sharing what I learn along the way here.\nOver time, I also plan to write practical tutorials on how to build and deploy similar apps yourself. For now, Fernão lives only on my machine, and that’s likely to remain the case. Still, I do intend to open-source it. Not because it’s universally useful in its current form (it’s deeply tailored to my life), but because the underlying ideas might be.\nTo make that possible, I’ll need to abstract tools, modularize functionality, and allow features to be turned on and off so others can shape the assistant around their own workflows, rather than mine.\nI could have built something similar using Claude Code alone. I didn’t. I wanted full control: the freedom to swap models, mix providers, and eventually run Fernão on a local LLM instead of relying on external APIs. Ownership and flexibility matter more to me than convenience here.\nIf you were building a personal AI assistant, what tasks would you give it? I’d genuinely like to hear your ideas and try to build them inside Fernão. Leave a comment as this project is still evolving, and outside perspectives are often the fastest way to make it better.\n## Register Now to Continue Reading\n### Unlock Towards Data Science with a Free Account\nAll articles on Towards Data Science are available to registered users. Create a free account today to access this article and thousands more.\nRegister for freeSign in to your account\n* * *\n![](../images/body-6f351be10c9e83aa9f9d.jpeg)\nWritten By\n## [Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\n[See all from Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\n[Deep Dives](https://towardsdatascience.com/tag/deep-dives/)[Artificial Intelligence](https://towardsdatascience.com/tag/artificial-intelligence/)[Building](https://towardsdatascience.com/tag/building/)[personal assistant](https://towardsdatascience.com/tag/personal-assistant/)[Prototype](https://towardsdatascience.com/tag/prototype/)\nShare This Article\n  * [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&title=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n  * [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&title=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n  * [](https://x.com/share?url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&text=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n\n\nTowards Data Science is a community publication. Submit your insights to reach our global audience and earn through the TDS Author Payment Program.\n[Write for TDS](https://towardsdatascience.com/submissions/)\n## Related Articles\n  * [![](../images/002.jpeg)](https://towardsdatascience.com/introduction-to-k-means-clustering-implementation-and-image-compression-8c59c439d1b/)\n## [Introduction to K-means Clustering: Implementation and Image Compression.](https://towardsdatascience.com/introduction-to-k-means-clustering-implementation-and-image-compression-8c59c439d1b/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nThis article is an introduction to K-means clustering through its Python implementation. Also, it includes its application to image...\n[Ching (Chingis)](https://towardsdatascience.com/author/chingisoinar/)\nFebruary 13, 20212 min read\n  * [![](../images/003.jpg)](https://towardsdatascience.com/letters-to-a-young-poet-translating-advice-given-by-an-artist-into-lessons-for-data-scientists-f1fce5025123/)\n## [Letters to a young poet - Translating advice given by an artist into lessons for data scientists.](https://towardsdatascience.com/letters-to-a-young-poet-translating-advice-given-by-an-artist-into-lessons-for-data-scientists-f1fce5025123/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nWisdom is not bound to specific fields of work and it is time we look beyond ours.\n[Bernardo Pereira](https://towardsdatascience.com/author/bmvmpereira/)\nNovember 15, 20204 min read\n  * [![](../images/004.jpeg)](https://towardsdatascience.com/a-beginners-guide-to-graph-neural-networks-using-pytorch-geometric-part-2-cd82c01330ab/)\n## [A Beginner's Guide to Graph Neural Networks Using PyTorch Geometric - Part 2](https://towardsdatascience.com/a-beginners-guide-to-graph-neural-networks-using-pytorch-geometric-part-2-cd82c01330ab/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nUsing Node Embeddings as features for GNN model\n[Rohith Teja](https://towardsdatascience.com/author/rohithtejam/)\nAugust 14, 20214 min read\n  * [![](../images/005.jpg)](https://towardsdatascience.com/predicting-the-unpredictable-905f634acc20/)\n## [Predicting the Unpredictable 🔮](https://towardsdatascience.com/predicting-the-unpredictable-905f634acc20/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nThe Magic of Mixture Density Networks Explained\n[Miguel Dias, PhD](https://towardsdatascience.com/author/pandego/)\nMay 19, 20246 min read\n  * [![](../images/006.jpeg)](https://towardsdatascience.com/statistics-for-data-science-how-to-learn-just-enough-in-weeks-d36dc717ae4/)\n## [Statistics for Data Science: How to Learn Just Enough in Weeks](https://towardsdatascience.com/statistics-for-data-science-how-to-learn-just-enough-in-weeks-d36dc717ae4/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nA few weeks of learning can help you stand out from the crowd in the long run\n[Arunn Thevapalan](https://towardsdatascience.com/author/arunnthevapalan/)\nAugust 23, 20214 min read\n  * [![](../images/007.jpeg)](https://towardsdatascience.com/applied-bayesian-inference-pt-1-322b25093f62/)\n## [Applied Bayesian Inference pt. 1](https://towardsdatascience.com/applied-bayesian-inference-pt-1-322b25093f62/)\n[Data Science](https://towardsdatascience.com/category/data-science/)\nAn Introduction to the Conditional World\n[Ani Madurkar](https://towardsdatascience.com/author/animadurkar/)\nJuly 19, 202120 min read\n  * [![](../images/008.jpg)](https://towardsdatascience.com/when-does-adding-fancy-rag-features-work/)\n## [When Does Adding Fancy RAG Features Work?](https://towardsdatascience.com/when-does-adding-fancy-rag-features-work/)\n[Large Language Models](https://towardsdatascience.com/category/artificial-intelligence/large-language-models/)\nLooking at the performance of different pipelines\n[Ida Silfverskiold](https://towardsdatascience.com/author/ilsilfverskiold/)\nJanuary 12, 202619 min read\n  * [![](../images/009.jpg)](https://towardsdatascience.com/how-to-study-for-the-google-data-analytics-professional-certificate-25e5e13b1f04/)\n## [How to Study for the Google Data Analytics Professional Certificate](https://towardsdatascience.com/how-to-study-for-the-google-data-analytics-professional-certificate-25e5e13b1f04/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nAn overview of how to succeed in this world-class data analytics program.\n[Madison Hunter](https://towardsdatascience.com/author/madison13/)\nMarch 31, 20219 min read\n  * [![](../images/010.jpeg)](https://towardsdatascience.com/stop-using-the-machine-learning-easy-button-872452721611/)\n## [Stop Using The Machine Learning Easy Button](https://towardsdatascience.com/stop-using-the-machine-learning-easy-button-872452721611/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nMore people learning data science is great, but not everyone who passes an online class should push their models to production.\n[Tim Lee](https://towardsdatascience.com/author/tim-lee/)\nMarch 5, 20216 min read\n\n\n  * [YouTube](https://www.youtube.com/c/TowardsDataScience)\n  * [X](https://x.com/TDataScience)\n  * [LinkedIn](https://www.linkedin.com/company/towards-data-science/)\n  * [Threads](https://www.threads.net/@towardsdatascience)\n  * [Bluesky](https://bsky.app/profile/towardsdatascience.com)\n\n\n[](https://towardsdatascience.com/)\nYour home for data science and AI. The world's leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.\nSubscribe to Our Newsletter[Write For TDS](https://towardsdatascience.com/submissions/)•[About](https://towardsdatascience.com/about-towards-data-science-d691af11cc2f/)•[Advertise](https://contact.towardsdatascience.com/advertise-with-towards-data-science)•[Privacy Policy](https://towardsdatascience.com/privacy-policy/)•[Terms of Use](https://towardsdatascience.com/website-terms-of-use/)\n© Insight Media Group, LLC 2026•[The New Stack](https://thenewstack.io)•[roadmap.sh](https://roadmap.sh)•[Creator Network](https://insightmediagroup.io/creator-network)\n####  Recommended Articles \nClose\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607686/image?etag=1782161464448&width=500&height=500) How Relevance Models Foreshadowed Transformers for NLP ](https://towardsdatascience.com/how-relevance-models-foreshadowed-transformers-for-nlp/ \"How Relevance Models Foreshadowed Transformers for NLP\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500) Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1 ](https://towardsdatascience.com/javascript-fatigue-you-dont-need-js-to-build-chatgpt/ \"Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500) The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs ](https://towardsdatascience.com/subset-sum-problem-solved-in-linear-time-for-dense-enough-inputs/ \"The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500) Does Your Company Have a Data Strategy? ](https://towardsdatascience.com/does-your-company-have-a-data-strategy-e8944dbec4ae/ \"Does Your Company Have a Data Strategy?\")\n\n\n",
  "metadata": {
    "title": "Building a Personal AI Agent in a couple of Hours | Towards Data Science",
    "description": "We are living in a Brave New World and prototyping just got fun",
    "keywords": null,
    "author": "Ivo Bernardo",
    "og:locale": "en_US",
    "og:type": "article",
    "og:title": "Building a Personal AI Agent in a couple of Hours",
    "og:description": "We are living in a Brave New World and prototyping just got fun",
    "og:url": "https://towardsdatascience.com/building-a-personal-ai-agent-in-a-couple-of-hours/",
    "og:site_name": "Towards Data Science",
    "og:image": "https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-340.png",
    "og:image:width": "1400",
    "og:image:height": "680",
    "og:image:type": "image/png",
    "twitter:card": "summary_large_image",
    "twitter:site": "@TDataScience",
    "twitter:creator": "@TDataScience",
    "twitter:label1": "Written by",
    "twitter:data1": "Ivo Bernardo",
    "twitter:label2": "Est. reading time",
    "twitter:data2": "14 min read",
    "article:published_time": "2026-03-31T06:24:12.000Z",
    "article:modified_time": "2026-03-31T06:24:12.000Z",
    "article:author": "https://towardsdatascience.com/author/ivopbernardo/"
  },
  "paywall": {
    "listed_paid": false,
    "detected": false,
    "marker": "",
    "public_only": false,
    "policy": "付费/会员内容只保留页面公开可见部分，不绕过付费墙"
  },
  "crawl": {
    "success": true,
    "status_code": 202,
    "error": ""
  },
  "code_blocks": [
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_000.txt",
      "chars": 4533
    },
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_001.txt",
      "chars": 5088
    },
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_002.txt",
      "chars": 1346
    },
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_003.txt",
      "chars": 158
    },
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_004.txt",
      "chars": 1627
    },
    {
      "language": "txt",
      "file": "attachments/7e9df354e991/code/block_005.txt",
      "chars": 137
    }
  ],
  "images": [
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607686/image?etag=1782161464448&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607686/image?etag=1782161464448&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:10:55Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:10:56Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:10:56Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:10:56Z"
    }
  ],
  "audio": [],
  "videos": [
    {
      "url": "https://www.youtube.com/c/TowardsDataScience",
      "kind": "channel_reference",
      "status": "reference_only"
    }
  ],
  "links": [
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/latest/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/editors-pick/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/the-variable/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/shipai/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/submissions/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/category/artificial-intelligence/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/ivopbernardo/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/deep-dives/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/artificial-intelligence/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/building/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/personal-assistant/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/prototype/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/introduction-to-k-means-clustering-implementation-and-image-compression-8c59c439d1b/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/chingisoinar/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/letters-to-a-young-poet-translating-advice-given-by-an-artist-into-lessons-for-data-scientists-f1fce5025123/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/bmvmpereira/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/a-beginners-guide-to-graph-neural-networks-using-pytorch-geometric-part-2-cd82c01330ab/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/rohithtejam/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/predicting-the-unpredictable-905f634acc20/"
    },
    {
      "type": "external",
      "href": "https://write.insightmediagroup.io"
    },
    {
      "type": "external",
      "href": "https://www.linkedin.com/company/towards-data-science/"
    },
    {
      "type": "external",
      "href": "https://x.com/TDataScience"
    },
    {
      "type": "external",
      "href": "https://roadmap.sh/ai-engineer"
    },
    {
      "type": "external",
      "href": "https://waitaday.substack.com/p/on-productivity"
    },
    {
      "type": "external",
      "href": "https://www.facebook.com/sharer/sharer.php?title=Building+a+Personal+AI+Agent+in+a+couple+of+Hours&u=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F"
    },
    {
      "type": "external",
      "href": "https://www.linkedin.com/shareArticle?mini=true&title=Building+a+Personal+AI+Agent+in+a+couple+of+Hours&url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F"
    },
    {
      "type": "external",
      "href": "https://x.com/share?text=Building+a+Personal+AI+Agent+in+a+couple+of+Hours&url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F"
    },
    {
      "type": "external",
      "href": "https://www.youtube.com/c/TowardsDataScience"
    },
    {
      "type": "external",
      "href": "https://www.threads.net/@towardsdatascience"
    },
    {
      "type": "external",
      "href": "https://bsky.app/profile/towardsdatascience.com"
    },
    {
      "type": "external",
      "href": "https://thenewstack.io"
    },
    {
      "type": "external",
      "href": "https://roadmap.sh"
    },
    {
      "type": "external",
      "href": "https://insightmediagroup.io/creator-network"
    }
  ],
  "repair_version": 2,
  "repaired_at": "2026-10-20T17:34:50Z",
  "source_url": "https://towardsdatascience.com/building-a-personal-ai-agent-in-a-couple-of-hours/",
  "delivery_status": "unverified",
  "discovery_status": "http_403",
  "missing_reason": "源页面未重新核验:http_403；已按保留正文补采图片",
  "repair_error": "",
  "actual_video_files": [],
  "expected_saved_body_images": 4,
  "image_discovery": "saved_markdown",
  "source_body_markdown": "![Revisit consent button](https://cdn-cookieyes.com/assets/images/revisit.svg)\nWe value your privacy\nWe use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking \"Accept All\", you consent to our use of cookies.\nCustomise Reject All Accept All\nCustomise Consent Preferences ![](https://cdn-cookieyes.com/assets/images/close.svg)\nWe use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.\nThe cookies that are categorised as \"Necessary\" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... Show more\nNecessaryAlways Active\nNecessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.\n  * Cookie\nBCTempID\n  * Duration\n10 minutes\n  * Description\nNo description available.\n\n\n  * Cookie\n__cf_bm\n  * Duration\n1 hour\n  * Description\nThis cookie, set by Cloudflare, is used to support Cloudflare Bot Management. \n\n\n  * Cookie\nAWSALBCORS\n  * Duration\n7 days\n  * Description\nAmazon Web Services set this cookie for load balancing.\n\n\n  * Cookie\n_cfuvid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to track users across sessions to optimize user experience by maintaining session consistency and providing personalized services\n\n\n  * Cookie\nli_gc\n  * Duration\n6 months\n  * Description\nLinkedin set this cookie for storing visitor's consent regarding using cookies for non-essential purposes.\n\n\n  * Cookie\n__hssrc\n  * Duration\nsession\n  * Description\nThis cookie is set by Hubspot whenever it changes the session cookie. The __hssrc cookie set to 1 indicates that the user has restarted the browser, and if the cookie does not exist, it is assumed to be a new session.\n\n\n  * Cookie\n__hssc\n  * Duration\n1 hour\n  * Description\nHubSpot sets this cookie to keep track of sessions and to determine if HubSpot should increment the session number and timestamps in the __hstc cookie.\n\n\n  * Cookie\nwpEmojiSettingsSupports\n  * Duration\nsession\n  * Description\nWordPress sets this cookie when a user interacts with emojis on a WordPress site. It helps determine if the user's browser can display emojis properly.\n\n\n  * Cookie\nBCSessionID\n  * Duration\n1 year 1 month 4 days\n  * Description\nBlueconic sets this cookie as a unique identifier for the BlueConic profile.\n\n\n  * Cookie\n_octo\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nlogged_in\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\n__Secure-YEC\n  * Duration\npast\n  * Description\nYouTube sets this cookie to stores the user's video player preferences using embedded YouTube video\n\n\n  * Cookie\n__eoi\n  * Duration\n6 months\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTGCORS\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\nlogin-status-p\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTG\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\ncsrf_token\n  * Duration\nsession\n  * Description\nNo description available.\n\n\n  * Cookie\ntoken_v2\n  * Duration\n1 day\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nD\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nPHPSESSID\n  * Duration\nsession\n  * Description\nThis cookie is native to PHP applications. The cookie stores and identifies a user's unique session ID to manage user sessions on the website. The cookie is a session cookie and will be deleted when all the browser windows are closed.\n\n\n  * Cookie\nVISITOR_PRIVACY_METADATA\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to store the user's cookie consent state for the current domain. \n\n\n  * Cookie\ncookietest\n  * Duration\nsession\n  * Description\nThe cookietest cookie is typically used to determine whether the user's browser accepts cookies, essential for website functionality and user experience.\n\n\n  * Cookie\n__Host-airtable-session\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\n__Host-airtable-session.sig\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\nm\n  * Duration\n1 year 1 month 4 days\n  * Description\nStripe sets this cookie for fraud prevention purposes. It identifies the device used to access the website, allowing the website to be formatted accordingly.\n\n\n  * Cookie\nBIGipServer*\n  * Duration\nsession\n  * Description\nMarketo sets this cookie to collect information about the user's online activity and build a profile about their interests to provide advertisements relevant to the user. \n\n\n  * Cookie\n__cfruid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to identify trusted web traffic.\n\n\n  * Cookie\n_GRECAPTCHA\n  * Duration\n6 months\n  * Description\nGoogle Recaptcha service sets this cookie to identify bots to protect the website against malicious spam attacks.\n\n\n  * Cookie\n__Secure-YNID\n  * Duration\n6 months\n  * Description\nGoogle cookie used to protect user security and prevent fraud, especially during the login process.\n\n\n  * Cookie\ncookieyes-consent\n  * Duration\n1 year\n  * Description\nCookieYes sets this cookie to remember users' consent preferences so that their preferences are respected on subsequent visits to this site. It does not collect or store any personal information about the site visitors.\n\n\nFunctional\nFunctional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.\n  * Cookie\nlidc\n  * Duration\n1 day\n  * Description\nLinkedIn sets the lidc cookie to facilitate data center selection.\n\n\n  * Cookie\nbrw\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nbrwConsent\n  * Duration\n5 minutes\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nWMF-Uniq\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nloom_anon_comment\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nloom_referral_video\n  * Duration\nsession\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nVISITOR_INFO1_LIVE\n  * Duration\n6 months\n  * Description\nA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.\n\n\n  * Cookie\nyt-remote-connected-devices\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nytidb::LAST_RESULT_ENTRY_KEY\n  * Duration\nNever Expires\n  * Description\nThe cookie ytidb::LAST_RESULT_ENTRY_KEY is used by YouTube to store the last search result entry that was clicked by the user. This information is used to improve the user experience by providing more relevant search results in the future.\n\n\n  * Cookie\nyt-remote-device-id\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-name\n  * Duration\nsession\n  * Description\nThe yt-remote-session-name cookie is used by YouTube to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\nyt-remote-fast-check-period\n  * Duration\nsession\n  * Description\nThe yt-remote-fast-check-period cookie is used by YouTube to store the user's video player preferences for embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-app\n  * Duration\nsession\n  * Description\nThe yt-remote-session-app cookie is used by YouTube to store user preferences and information about the interface of the embedded YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-available\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-available cookie is used to store the user's preferences regarding whether casting is available on their YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-installed\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-installed cookie is used to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\ncp_session\n  * Duration\n3 months\n  * Description\nCodepen sets this cookie for Help systems found in the website.\n\n\n  * Cookie\nloid\n  * Duration\n1 year 1 month 4 days\n  * Description\nThis cookie is set by the Reddit. The cookie enables the sharing of content from the website onto the social media platform.\n\n\nAnalytics\nAnalytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.\n  * Cookie\n__hstc\n  * Duration\n6 months\n  * Description\nHubspot set this main cookie for tracking visitors. It contains the domain, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).\n\n\n  * Cookie\nhubspotutk\n  * Duration\n6 months\n  * Description\nHubSpot sets this cookie to keep track of the visitors to the website. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.\n\n\n  * Cookie\n_ga\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.\n\n\n  * Cookie\n_ga_*\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to store and count page views.\n\n\n  * Cookie\n__Host-psifi.analyticsTrace\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n__Host-psifi.analyticsTraceV2\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n_gh_sess\n  * Duration\nsession\n  * Description\nGitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.\n\n\n  * Cookie\nYSC\n  * Duration\nsession\n  * Description\nYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.\n\n\n  * Cookie\najs_anonymous_id\n  * Duration\n1 year\n  * Description\nThis cookie is set by Segment to count the number of people who visit a certain site by tracking if they have visited before.\n\n\n  * Cookie\nvuid\n  * Duration\n1 year 1 month 4 days\n  * Description\nVimeo installs this cookie to collect tracking information by setting a unique ID to embed videos on the website. \n\n\nPerformance\nPerformance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.\n  * Cookie\nAWSALB\n  * Duration\n7 days\n  * Description\nAWSALB is an application load balancer cookie set by Amazon Web Services to map the session to the target.\n\n\n  * Cookie\nacq\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nacq.sig\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nptc\n  * Duration\n2 years\n  * Description\nNo description available.\n\n\nAdvertisement\nAdvertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.\n  * Cookie\nmuc_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to collect user behaviour and interaction data to optimize the website.\n\n\n  * Cookie\nguest_id_marketing\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\nguest_id_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\npersonalization_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to integrate and share features for social media and also store information about how the user uses the website, for tracking and targeting.\n\n\n  * Cookie\nguest_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor. It registers if a user is signed in to the Twitter platform and collects information about ad preferences.\n\n\n  * Cookie\nbcookie\n  * Duration\n1 year\n  * Description\nLinkedIn sets this cookie from LinkedIn share buttons and ad tags to recognize browser IDs.\n\n\n  * Cookie\n__Secure-ROLLOUT_TOKEN\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to manage feature rollout and experimentation. It helps Google control which new features or interface changes are shown to users as part of testing and staged rollouts, ensuring consistent experience for a given user during an experiment.\n\n\n  * Cookie\nyt.innertube::nextId\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nyt.innertube::requests\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nsession_tracker\n  * Duration\nsession\n  * Description\nThis cookie is set by the Reddit. This cookie is used to identify trusted web traffic. It also helps in adverstising on the website.\n\n\n  * Cookie\nedgebucket\n  * Duration\nsession\n  * Description\nReddit sets this cookie to save the information about a log-on Reddit user, for the purpose of advertisement recommendations and updating the content.\n\n\n  * Cookie\ndid\n  * Duration\n1 year\n  * Description\nArbor sets this cookie to show targeted ads to site visitors.This cookie expires after 2 months or 1 year.\n\n\nUncategorised\nOther uncategorised cookies are those that are being analysed and have not been classified into a category as yet.\nNo cookies to display.\nReject All Save My Preferences Accept All\nToggle Search[](https://towardsdatascience.com/)Toggle Mobile Navigation\n[](https://towardsdatascience.com/)\nPublish AI, ML & data-science insights to a global community of data professionals.\nSign in[Submit an Article](https://write.insightmediagroup.io)\n[Latest](https://towardsdatascience.com/latest/)[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Newsletter](https://towardsdatascience.com/tag/the-variable/)[ShipAI](https://towardsdatascience.com/shipai/)\n* * *\n[Write For TDS](https://towardsdatascience.com/submissions/)\n[LinkedIn](https://www.linkedin.com/company/towards-data-science/)[X](https://x.com/TDataScience)Toggle Search\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\n# Building a Personal AI Agent in a couple of Hours\nWe are living in a Brave New World and prototyping just got fun\n[Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\nMarch 31, 202614 min read\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-340.png)\nFernão's Home Page - Image by Author\nI’ve been so surprised by how fast individual builders can now ship real and useful prototypes.\nTools like Claude Code, Google AntiGravity, and the growing ecosystem around them have crossed a threshold: you can inspect what others are building online and realize just how fast you can build today.\nOver the past weeks, I’ve started reserving one to two hours a day exclusively for building with my AI-first stack:\n  * Google AntiGravity\n  * Google Gemini Pro\n  * Claude models accessed through AntiGravity\n\n\nThis setup has fundamentally changed how I think about prototyping, iteration speed, and what a “personal AI agent” can realistically do today. More importantly, it pulled me back into hands-on coding and building, something I had personally sacrificed once my role at DareData shifted toward management and orchestration rather than execution.\nLearn this step by step with the interactive [AI Engineer](https://roadmap.sh/ai-engineer) roadmap.\nIndividually, this revolution has been a blessing someone who was always going to drift toward management roles. It removes the trade-off I had accepted: that growing a company meant abandoning building entirely. I no longer have to choose between building and managing, they actually reinforce each other.\nBut, there is a broader implication here for people who are “just” developing. If AI agents increasingly handle execution, then pure implementation stops being enough. Developers will be pushed (whether they want it or not) toward coordination, decision-making, and.. management — something that individual contributors hate by heart. In other words, management skills become part of the technical stack, and AI agents are part of the context being managed.\nWhat surprised me most is how transferable my existing management skills turned out to be:\n  * Guiding the agent rather than micromanaging it\n  * Asking for outcomes instead of instructions\n  * Mapping, prioritizing, and pointing the grey areas\n\n\nIn practice, I am managing and coordinating a virtual employee. I can deeply influence some parts of its work while remaining almost entirely ignorant of others — and that is not a bug, it is a big feature. In my personal AI assistant, for example, I can reason clearly about the backend, yet remain mostly clueless about the frontend. The system still works, because my role is no longer to know everything, but to steer the system in the right direction.\nThis is directly analogous to how I coordinate people inside the company. As DareData grows, we do not hire replicas of founders. We intentionally hire people who can do things we cannot do, and, over time, things we will never learn deeply enough to do well.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/02/image-66-1024x595.png)\nCurrent Building Stack — Google AntiGravity - Image by Author\nEnough self-reflection on management. Let’s look at what I’m building because that’s what you are here for:\n  * A personal AI assistant designed around my actual routines, not a generic productivity template. It adapts to how I work, think, and make decisions.\n  * A mobile app that recommends one music album per week, without a traditional recommendation system. No comfort-zone reinforcement and that helps me expand my listening zones.\n  * A mobile game built around a single character progressing through layered dungeons, developed primarily as a creative playground rather than a commercial product.\n\n\nThe interesting part is that, while I’m comfortable coding most of the backend, front-end development is not a skill I have — and if I were forced to do it myself, these projects would slow down from hours to days, or simply never ship.\nThat constraint is now largely irrelevant. With this new stack, imagination becomes the real bottleneck. The cost of “not knowing” an entire layer has collapsed.\nSo, in the rest of this post, I’ll walk through my personal AI assistant: what it does, how it’s structured, and why it works for me. My goal is to open-source it once it stabilizes, so others can adapt it to their own workflows. It is currently very specific to my life, but that specificity is intentional, and making it more general is part of the experiment.\n* * *\n## Meet Fernão\nFernão Lopes was a chronicler of the Portuguese monarchy. I chose a Portuguese historical figure deliberately — Portuguese people have a habit of attaching historical names to almost anything. If that sounds stereotypically Portuguese, that’s intentional.\nFernão is Portuguese but actually speaks English, call it a modern day chronicler for the 21st century.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/02/image-190.png)\nFernão Lopes, Chronicler of the Portuguese Kingdom - Image Source: Wikimedia Foundation\nAt this point, I’m doing two things I usually avoid: anthropomorphizing AI and leaning into a very Portuguese naming instinct. Consider it a harmless sign of me turning older.\nThat aside, what does Fernão actually do for me? The best place to start is his front page.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-340-1024x497.png)\nFernão’s Front Page - Image by Author\nFernão is a cool-looking dude who currently handles five tasks:\n  * **Day Schedule** : plans my day by pulling together calendars, to-dos, and objectives, then turning them into something I can follow.\n  * **Writing Assistant** : helps me review and clean up drafts of blog posts and other texts.\n  * **Portfolio Helper** : suggests companies or ETFs to add based on rebalancing needs and what’s going on in the macro world (without pretending to be a crystal ball).\n  * **Financial Organizer** : extracts spending from my bank statements and uploads everything into the Cashew app, saving me from yet another task that took me about 3 to 4 hours monthly.\n  * **Subscriptions & Discounts**: keeps track of all my subscriptions and surfaces discounts or benefits I probably have but never remember to use.\n\n\nIn this post, I’ll focus on the Day Schedule app.\nAt the moment, Fernão’s **Day Schedule** does three simple things:\n  * Fetches my calendar, including all scheduled meetings\n  * Pulls my to-dos from Microsoft To Do\n  * Retrieves my personal Key Results from Notion\n\n\nAll of this is connected through APIs. The idea is straightforward: every day, Fernão looks at my constraints, priorities, and commitments, then generates the best possible schedule for me.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-341-1024x440.png)\nFernão’s Current Powers - Image by Author\nTo generate a schedule in the front-end is pretty easy (all the front-end was vibe coded). Here is the generate schedule button:\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-342-1024x205.png)\nGenerate Schedule for a Specific Day - Image by Author\nOnce I hit Generate Schedule, Fernão starts cooking in the background:\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-343-1024x626.png)\nFernão is Generating a Schedule - Image by Author\nThe steps are then, in order: fetching my calendar, tasks, and Notion data.\nThe next point is also where basic coding literacy really starts to matter, not because everything the following code does not work, but because you need to understand  _what_ is happening and  _where_ things may eventually break or need improvement.\nLet’s start with the calendar fetch. At the moment, this is handled by a single, gigantic function created by Claude that is **completely unoptimized**.\npython\n\n```\ndef get_events_for_date(target_date=None):\n    \"\"\"\n    Fetches events for a specific date from Google Calendar via ICS feeds.\n    \n    Args:\n        target_date: datetime.date object for the target day. If None, uses today.\n    \n    Returns a list of event dictionaries.\n    \"\"\"\n    # Hardcoded calendar URLs (not using env var to avoid placeholder issues)\n    CALENDAR_URLS = [\n        'cal1url',\n        'call2url'\n    ]\n    \n    LOCAL_TZ = os.getenv('TIMEZONE', 'Europe/Lisbon')\n    \n    # Get timezone\n    local = tz.gettz(LOCAL_TZ)\n    \n    # If no target date provided, use today\n    if target_date is None:\n        target_date = datetime.now(local).date()\n    \n    # Create datetime for the target day boundaries\n    day_start = datetime.combine(target_date, datetime.min.time()).replace(tzinfo=local)\n    day_end = day_start + timedelta(days=1)\n    \n    # Debug: Print the date range we're checking\n    print(f\"\\n[Debug] Checking calendars for date: {target_date.strftime('%Y-%m-%d')}\")\n    print(f\"  Start: {day_start.strftime('%Y-%m-%d %H:%M %Z')}\")\n    print(f\"  End: {day_end.strftime('%Y-%m-%d %H:%M %Z')}\")\n    print(f\"  Timezone: {LOCAL_TZ}\")\n    \n    all_events = []\n    \n    # Fetch from each calendar\n    for idx, cal_url in enumerate(CALENDAR_URLS, 1):\n        calendar_name = f\"Calendar {idx}\"\n        print(f\"\\n[Debug] Fetching {calendar_name}...\")\n        \n        try:\n            # Load calendar from ICS URL with adequate timeout\n            r = requests.get(cal_url, timeout=30)\n            r.raise_for_status()\n            cal = Calendar(r.text)\n            \n            events_found_this_cal = 0\n            total_events_in_cal = len(list(cal.events))\n            print(f\"  Total events in {calendar_name}: {total_events_in_cal}\")\n            \n            # Use timeline to efficiently filter events for target day's date range\n            # Convert local times to UTC for timeline filtering\n            day_start_utc = day_start.astimezone(timezone.utc)\n            day_end_utc = day_end.astimezone(timezone.utc)\n            \n            # Get events in target day's range using timeline\n            days_timeline = cal.timeline.overlapping(day_start_utc, day_end_utc)\n            \n            for e in days_timeline:\n                if not e.begin:\n                    continue\n                    \n                # Get event start time\n                start = e.begin.datetime\n                if start.tzinfo is None:\n                    start = start.replace(tzinfo=timezone.utc)\n                \n                # Convert to local timezone\n                start_local = start.astimezone(local)\n                \n                # Debug: Print first few events to see dates\n                if events_found_this_cal < 3:\n                    print(f\"  Event: '{e.name}' at {start_local.strftime('%Y-%m-%d %H:%M')}\")\n                \n                # Get end time\n                end = e.end.datetime if e.end else None\n                end_local = end.astimezone(local) if end else None\n                \n                all_events.append({\n                    \"title\": e.name,\n                    \"start\": start_local.strftime(\"%H:%M\"),\n                    \"end\": end_local.strftime(\"%H:%M\") if end_local else None,\n                    \"location\": e.location or \"\",\n                    \"description\": e.description or \"\"\n                })\n                events_found_this_cal += 1\n            \n            print(f\"  [OK] Found {events_found_this_cal} event(s) for target day in {calendar_name}\")\n            \n        except requests.exceptions.RequestException as e:\n            print(f\"  [X] Network error fetching {calendar_name}: {str(e)}\")\n            continue\n        except Exception as e:\n            print(f\"  [X] Error processing {calendar_name}: {type(e).__name__}: {str(e)}\")\n            continue\n    \n    # Sort by start time\n    all_events.sort(key=lambda x: x[\"start\"])\n    \n    # Print all events in detail\n    if all_events:\n        print(f\"\\n[Google Calendar] Found {len(all_events)} event(s) for {target_date.strftime('%Y-%m-%d')}:\")\n        print(\"-\" * 60)\n        for event in all_events:\n            time_str = f\"{event['start']}-{event['end']}\" if event['end'] else event['start']\n            location_str = f\" @ {event['location']}\" if event['location'] else \"\"\n            print(f\"  {time_str} | {event['title']}{location_str}\")\n        print(\"-\" * 60)\n    else:\n        print(f\"\\n[Google Calendar] No events for {target_date.strftime('%Y-%m-%d')}\")\n    \n    return all_events\n```\n\nAs a Python developer, all the `print` statements give me the ick. But that’s a problem for the next phase of Fernão: refactoring and optimizing the code once the product logic is solid.\nThis is also where I really see the  _human + AI_ dynamic working. I can immediately spot several ways to improve this function (reduce verbosity, cut unnecessary latency, clean up the flow) but doing that well still requires time, judgment, and intent. AI helps me move fast; it doesn’t replace the need to know what  _extraordinary_ looks like.\nFor now, I haven’t spent much time optimizing it, and that’s a conscious choice. Despite its rough edges, the function does exactly what it needs to do: it pulls data from my calendars and feeds the meeting information into Fernão, enabling everything that comes next.\nNext, Fernão pulls my tasks from Microsoft To Do. This is where my daily to-dos live (the small, concrete things that need to get done and that give structure to a specific day). All of this is configured directly in the Microsoft To Do app, which is a core part of my daily workflow.\nIf you’re curious about the broader productivity system behind this, I’ve written about it in a related post on the brother of this blog (Wait a Day) linked [below](https://waitaday.substack.com/p/on-productivity).\nSo, let’s look at another verbosed function:\npython\n\n```\ndef get_tasks(target_date=None):\n    \"\"\"\n    Fetches tasks from Microsoft To Do for a specific date (tasks due on or before that date).\n    \n    Args:\n        target_date: datetime.date object for the target day. If None, uses today.\n    \n    Returns a list of task dictionaries.\n    \"\"\"\n    CLIENT_ID = os.getenv('MS_CLIENT_ID', 'CLIENT_ID_KEY')\n    AUTHORITY = \"https://login.microsoftonline.com/consumers\"\n    SCOPES = ['Tasks.ReadWrite', 'User.Read']\n    \n    # Setup persistent token cache\n    cache = SerializableTokenCache()\n    cache_file = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '.token_cache.bin')\n    \n    if os.path.exists(cache_file):\n        with open(cache_file, 'r') as f:\n            cache.deserialize(f.read())\n    \n    # Authentication with persistent cache\n    app = PublicClientApplication(CLIENT_ID, authority=AUTHORITY, token_cache=cache)\n    accounts = app.get_accounts()\n    \n    result = None\n    if accounts:\n        result = app.acquire_token_silent(SCOPES, account=accounts[0])\n        if not result or \"access_token\" not in result:\n            for account in accounts:\n                app.remove_account(account)\n            result = None\n    \n    if not result:\n        flow = app.initiate_device_flow(scopes=SCOPES)\n        if \"user_code\" not in flow:\n            print(f\"[MS To Do] Failed to create device flow: {flow.get('error_description', 'Unknown error')}\")\n            return []\n        if \"message\" in flow:\n            print(flow['message'])\n        result = app.acquire_token_by_device_flow(flow)\n\n    if not result or \"access_token\" not in result:\n        print(f\"[MS To Do] Authentication failed: {result.get('error_description', 'No access token') if result else 'No result'}\")\n        return []\n    headers = {\"Authorization\": f\"Bearer {result['access_token']}\"}\n    \n    # Get date boundaries for target date\n    # If no target date provided, use today\n    if target_date is None:\n        from datetime import date\n        target_date = date.today()\n    \n    # Convert date to datetime in UTC for comparison\n    now = datetime.now(timezone.utc)\n    target_day_end = datetime.combine(target_date, datetime.max.time()).replace(tzinfo=timezone.utc)\n    \n    # Fetch all lists\n    lists_r = requests.get(\"https://graph.microsoft.com/v1.0/me/todo/lists\", headers=headers)\n    if lists_r.status_code != 200:\n        return []\n    \n    lists_res = lists_r.json().get(\"value\", [])\n    all_tasks = []\n    \n    # Fetch tasks from all lists with server-side filtering\n    for task_list in lists_res:\n        list_id = task_list[\"id\"]\n        list_name = task_list[\"displayName\"]\n        \n        # Simple filter - just get incomplete tasks\n        params = {\"$filter\": \"status ne 'completed'\"}\n        \n        tasks_r = requests.get(\n            f\"https://graph.microsoft.com/v1.0/me/todo/lists/{list_id}/tasks\",\n            headers=headers,\n            params=params\n        )\n        \n        if tasks_r.status_code != 200:\n            continue\n        \n        tasks = tasks_r.json().get(\"value\", [])\n        \n        # Filter and transform tasks\n        for task in tasks:\n            due_date_obj = task.get(\"dueDateTime\")\n            \n            if not due_date_obj:\n                continue\n                \n            due_date_str = due_date_obj.get(\"dateTime\")\n            if not due_date_str:\n                continue\n            \n            try:\n                due_date = datetime.fromisoformat(due_date_str.split('.')[0])\n                if due_date.tzinfo is None:\n                    due_date = due_date.replace(tzinfo=timezone.utc)\n                \n                # Include all tasks due on or before the target date\n                if due_date <= target_day_end:\n                    # Determine status based on target date\n                    target_day_start = datetime.combine(target_date, datetime.min.time()).replace(tzinfo=timezone.utc)\n                    \n                    if due_date < target_day_start:\n                        status = \"OVERDUE\"\n                    elif due_date <= target_day_end:\n                        status = f\"DUE {target_date.strftime('%Y-%m-%d')}\"\n                    else:\n                        status = \"FUTURE\"\n                    \n                    all_tasks.append({\n                        \"list\": list_name,\n                        \"title\": task[\"title\"],\n                        \"due\": due_date.strftime(\"%Y-%m-%d\"),\n                        \"importance\": task.get(\"importance\", \"normal\"),\n                        \"status\": status\n                    })\n            except Exception as e:\n                continue\n    \n    # Print task summary\n    if all_tasks:\n        print(f\"[MS To Do] {len(all_tasks)} task(s) for {target_date.strftime('%Y-%m-%d')} or overdue\")\n    else:\n        print(f\"[MS To Do] No tasks due on {target_date.strftime('%Y-%m-%d')} or overdue\")\n    \n    # Save token cache for next run\n    if cache.has_state_changed:\n        with open(cache_file, 'w') as f:\n            f.write(cache.serialize())\n    \n    return all_tasks\n```\n\nThis function retrieves a full list of my tasks for the current day (and overdue from previous days) — here’s an example of how they look in to-do:\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-344.png)\nExample of Tasks in the To-Do App - Image by Author\nAfter pulling tasks from To Do, I also want Fernão to understand  _where I’m trying to go_ , not just what’s on today’s list. For that, it fetches my objectives directly from a Notion page where I have the key results for my year.\nHere’s an example of how those objectives are structured:\n  * the first column shows my baseline at the start of the year,\n  * the last column defines the target I want to reach,\n  * and the column on the right tracks my current progress.\n\n\nThe sample below include how many blog posts I want to write for you this year, as well as the total number of books I aim to sell across my three titles.\nThis gives Fernão broader context on what to priority in the tasks, as you’ll see in the prompt to create the schedule.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-345-1024x216.png)\nPersonal Objectives Example - Image by Author\nBtw, while writing this post, I ended up adding a small widget to the app. If we’re building a personal assistant, it might as well have some personality.\nSo I asked Gemini:\n> _“Can you add a fun animation while the app is retrieving calendar events, checking to-dos, and pulling Notion data? Maybe a small widget of Fernão stirring a pot, with the caption_ ‘Fernão is cooking’ _.”_\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-346-1024x345.png)\nFernão is cooking - Image by Author\nOnce this round finishes, tasks and calendar events are successfully collected and displayed in Fernão’s front end (a sample of the tasks and meetings for my day is shown below).\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-347-1024x358.png)\nTasks and Calendar Events fetched by Fernao - Image by Author\nAnd now the fun part: with calendars, tasks, and objectives in hand, Fernão composes my entire day into a single, magical plan:\ntext\n\n```\n07:30-09:30 | Gym\n09:30-09:40 | Check Timesheets on Odoo (Due: 2026-02-04)\n09:40-09:55 | Review Tasks in To-Do - [Organization Task] (Due: 2026-02-04)\n09:55-10:15 | Read Feedly Stuff - [News Catchup] (Due: 2026-02-04)\n10:15-10:30 | Write culture doc, inspiration: https://pt.slideshare.net/slideshow/culture-1798664/1798664 (Due: 2026-02-04)\n10:30-10:45 | Answer LinkedIns - [Organization Task] (Due: 2026-02-04)\n10:45-11:00 | Check Looker (Due: 2026-02-04)\n11:00-11:30 | This Week in AI Post (Due: 2026-02-04)\n11:30-12:00 | Prepare Podcast Decoding AI\n12:00-13:00 | Podcast Decoding AI - Ivo Bernardo, DareData (Event)\n13:00-14:00 | Lunch Break\n14:00-14:30 | Candidate 1 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n14:30-18:00 | Prepare DareData State of the Union\n18:00-18:30 | Candidate 2 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n18:30-19:00 | Candidate 3 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n19:00-19:30 | Candidate 4 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n19:30-20:00 | Candidate 5 (name hidden) and Ivo Bernardo @ Google Meet (Event)\n20:00-20:15 | Check Insider Trading Signals for Stock Ideas https://finviz.com/insidertrading?tc=1 (Overdue)\n20:15-20:30 | Marketing Timeline (Overdue)\n20:30-21:00 | Dinner Break\n21:00-22:00 | Ler\n22:00-22:15 | Close of Day - Review and prep for tomorrow\n```\n\nThis is one of those moments that genuinely feels a bit magical. Not because the technology is opaque, but because the outcome is so clean. A messy mix of meetings, tasks, and long-term goals turns into a day I can actually execute.\nWhat makes it even more interesting is how simple the final step is. After all the heavy lifting is done in the background (calendar events, to-dos, objectives), I don’t orchestrate a complex pipeline or chain of prompts. I use a single prompt.\nThat one prompt takes everything Fernão knows about my constraints and priorities and turns it into the day you’re about to see.\ntext\n\n```\nname: daily_schedule\ndescription: Generate a daily schedule based on calendar events and tasks\nmodel: gemini-2.5-flash-lite\ntemperature: 0.3\nmax_tokens: 8192\n```\n\ntext\n\n```\nvariables:\n  - date_context\n  - events_str\n  - tasks_str\n  - context\n  - todo_context\n  - auto_context\n  - currently_reading\n  - notion_context\n  - is_today\ntemplate: |\n  You are my personal AI scheduling assistant. Help me plan my day!\n  **TARGET DATE:** Planning for {date_context}\n  **EVENTS (Fixed):**\n  {events_str}\n  **TASKS TO SCHEDULE:**\n  {tasks_str}\n  **MY CONTEXT:**\n  {context}\n  **TASK CONTEXT (how long tasks typically take):**\n  {todo_context}\n  **AUTO-LEARNED CONTEXT:**\n  {auto_context}\n  **CURRENTLY READING:**\n  {currently_reading}\n  **RESULTS & OBJECTIVES (from Notion):**\n  {notion_context}\n  **SCHEDULING RULES:**\n  1. **Cannot schedule tasks during calendar events** - events are fixed\n  2. **Mandatory breaks:**\n     - Lunch: 12:30-13:30 (reserve when possible)\n     - Dinner: 20:30-21:00\n     - Playing with my cat: 45-60 minutes somewhere scattered around the day\n  3. **Task fitting:** Intelligently fit tasks between events based on available time\n  4. **Time estimates:** Use the task context to estimate how long each task will take\n  5. **Working hours:** 09:30 to 22:00\n  6. **Start the schedule:** {is_today}\n  \n  **YOUR JOB:**\n  1. Create a complete hourly schedule for {date_context}\n  2. Fit all tasks between events and breaks\n  3. **Prioritize tasks based on my Results & Objectives from Notion** - focus on what matters most\n  4. Be conversational - if you need more info about a task, ask me!\n  5. **Save learnings:** If I give you context about tasks, acknowledge it and say you'll remember it\n  **FORMAT:**\n  Start with a friendly greeting, then provide the schedule in this format:\n  ```\n  09:30-10:00 | Task/Event\n  10:00-11:00 | Task/Event\n  ...\n  ```\n  After the schedule, ask if I need any adjustments or if you need clarification on any tasks.\n  Generate my day's schedule now, thanks!\n```\n\nAnd with this, Fernão is definitely cooking:\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/03/image-348-1024x688.png)\nFernão is Cooking again - Image by Author\nThis has been a genuinely fun system to build. I’ll keep evolving Fernão, giving him new responsibilities, breaking things, fixing them, and sharing what I learn along the way here.\nOver time, I also plan to write practical tutorials on how to build and deploy similar apps yourself. For now, Fernão lives only on my machine, and that’s likely to remain the case. Still, I do intend to open-source it. Not because it’s universally useful in its current form (it’s deeply tailored to my life), but because the underlying ideas might be.\nTo make that possible, I’ll need to abstract tools, modularize functionality, and allow features to be turned on and off so others can shape the assistant around their own workflows, rather than mine.\nI could have built something similar using Claude Code alone. I didn’t. I wanted full control: the freedom to swap models, mix providers, and eventually run Fernão on a local LLM instead of relying on external APIs. Ownership and flexibility matter more to me than convenience here.\nIf you were building a personal AI assistant, what tasks would you give it? I’d genuinely like to hear your ideas and try to build them inside Fernão. Leave a comment as this project is still evolving, and outside perspectives are often the fastest way to make it better.\n## Register Now to Continue Reading\n### Unlock Towards Data Science with a Free Account\nAll articles on Towards Data Science are available to registered users. Create a free account today to access this article and thousands more.\nRegister for freeSign in to your account\n* * *\n![](https://assets.insightmediagroup.io/media/1787657081760_wqdt7l.jpeg)\nWritten By\n## [Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\n[See all from Ivo Bernardo](https://towardsdatascience.com/author/ivopbernardo/)\n[Deep Dives](https://towardsdatascience.com/tag/deep-dives/)[Artificial Intelligence](https://towardsdatascience.com/tag/artificial-intelligence/)[Building](https://towardsdatascience.com/tag/building/)[personal assistant](https://towardsdatascience.com/tag/personal-assistant/)[Prototype](https://towardsdatascience.com/tag/prototype/)\nShare This Article\n  * [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&title=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n  * [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&title=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n  * [](https://x.com/share?url=https%3A%2F%2Ftowardsdatascience.com%2Fbuilding-a-personal-ai-agent-in-a-couple-of-hours%2F&text=Building%20a%20Personal%20AI%20Agent%20in%20a%20couple%20of%20Hours)\n\n\nTowards Data Science is a community publication. Submit your insights to reach our global audience and earn through the TDS Author Payment Program.\n[Write for TDS](https://towardsdatascience.com/submissions/)\n## Related Articles\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/02/1KkbPOd9ac5h8CYUqwNjx8g.jpeg)](https://towardsdatascience.com/introduction-to-k-means-clustering-implementation-and-image-compression-8c59c439d1b/)\n## [Introduction to K-means Clustering: Implementation and Image Compression.](https://towardsdatascience.com/introduction-to-k-means-clustering-implementation-and-image-compression-8c59c439d1b/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nThis article is an introduction to K-means clustering through its Python implementation. Also, it includes its application to image...\n[Ching (Chingis)](https://towardsdatascience.com/author/chingisoinar/)\nFebruary 13, 20212 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2020/11/0fvNjyIslQ85sLh-_-scaled.jpg)](https://towardsdatascience.com/letters-to-a-young-poet-translating-advice-given-by-an-artist-into-lessons-for-data-scientists-f1fce5025123/)\n## [Letters to a young poet - Translating advice given by an artist into lessons for data scientists.](https://towardsdatascience.com/letters-to-a-young-poet-translating-advice-given-by-an-artist-into-lessons-for-data-scientists-f1fce5025123/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nWisdom is not bound to specific fields of work and it is time we look beyond ours.\n[Bernardo Pereira](https://towardsdatascience.com/author/bmvmpereira/)\nNovember 15, 20204 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/12/1jUMexU3zpd10SkvMzt64oA-scaled.jpeg)](https://towardsdatascience.com/a-beginners-guide-to-graph-neural-networks-using-pytorch-geometric-part-2-cd82c01330ab/)\n## [A Beginner's Guide to Graph Neural Networks Using PyTorch Geometric - Part 2](https://towardsdatascience.com/a-beginners-guide-to-graph-neural-networks-using-pytorch-geometric-part-2-cd82c01330ab/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nUsing Node Embeddings as features for GNN model\n[Rohith Teja](https://towardsdatascience.com/author/rohithtejam/)\nAugust 14, 20214 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2024/05/1pOHI3ogfv7133bB2rlMMqQ.jpg)](https://towardsdatascience.com/predicting-the-unpredictable-905f634acc20/)\n## [Predicting the Unpredictable 🔮](https://towardsdatascience.com/predicting-the-unpredictable-905f634acc20/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nThe Magic of Mixture Density Networks Explained\n[Miguel Dias, PhD](https://towardsdatascience.com/author/pandego/)\nMay 19, 20246 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/08/1h2zgBBrj2jlZs5afI687Ng-scaled.jpeg)](https://towardsdatascience.com/statistics-for-data-science-how-to-learn-just-enough-in-weeks-d36dc717ae4/)\n## [Statistics for Data Science: How to Learn Just Enough in Weeks](https://towardsdatascience.com/statistics-for-data-science-how-to-learn-just-enough-in-weeks-d36dc717ae4/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nA few weeks of learning can help you stand out from the crowd in the long run\n[Arunn Thevapalan](https://towardsdatascience.com/author/arunnthevapalan/)\nAugust 23, 20214 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/07/1hSxE3MtU1T9-_5kS-GmvTQ-scaled.jpeg)](https://towardsdatascience.com/applied-bayesian-inference-pt-1-322b25093f62/)\n## [Applied Bayesian Inference pt. 1](https://towardsdatascience.com/applied-bayesian-inference-pt-1-322b25093f62/)\n[Data Science](https://towardsdatascience.com/category/data-science/)\nAn Introduction to the Conditional World\n[Ani Madurkar](https://towardsdatascience.com/author/animadurkar/)\nJuly 19, 202120 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/01/Skarmavbild-2026-01-07-kl.-15.14.18.jpg)](https://towardsdatascience.com/when-does-adding-fancy-rag-features-work/)\n## [When Does Adding Fancy RAG Features Work?](https://towardsdatascience.com/when-does-adding-fancy-rag-features-work/)\n[Large Language Models](https://towardsdatascience.com/category/artificial-intelligence/large-language-models/)\nLooking at the performance of different pipelines\n[Ida Silfverskiold](https://towardsdatascience.com/author/ilsilfverskiold/)\nJanuary 12, 202619 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/03/0iepLr3UPpSlQOxmX-scaled.jpg)](https://towardsdatascience.com/how-to-study-for-the-google-data-analytics-professional-certificate-25e5e13b1f04/)\n## [How to Study for the Google Data Analytics Professional Certificate](https://towardsdatascience.com/how-to-study-for-the-google-data-analytics-professional-certificate-25e5e13b1f04/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nAn overview of how to succeed in this world-class data analytics program.\n[Madison Hunter](https://towardsdatascience.com/author/madison13/)\nMarch 31, 20219 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/03/1kVbnLus0YftsFW1Cps7Sug-scaled.jpeg)](https://towardsdatascience.com/stop-using-the-machine-learning-easy-button-872452721611/)\n## [Stop Using The Machine Learning Easy Button](https://towardsdatascience.com/stop-using-the-machine-learning-easy-button-872452721611/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nMore people learning data science is great, but not everyone who passes an online class should push their models to production.\n[Tim Lee](https://towardsdatascience.com/author/tim-lee/)\nMarch 5, 20216 min read\n\n\n  * [YouTube](https://www.youtube.com/c/TowardsDataScience)\n  * [X](https://x.com/TDataScience)\n  * [LinkedIn](https://www.linkedin.com/company/towards-data-science/)\n  * [Threads](https://www.threads.net/@towardsdatascience)\n  * [Bluesky](https://bsky.app/profile/towardsdatascience.com)\n\n\n[](https://towardsdatascience.com/)\nYour home for data science and AI. The world's leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.\nSubscribe to Our Newsletter[Write For TDS](https://towardsdatascience.com/submissions/)•[About](https://towardsdatascience.com/about-towards-data-science-d691af11cc2f/)•[Advertise](https://contact.towardsdatascience.com/advertise-with-towards-data-science)•[Privacy Policy](https://towardsdatascience.com/privacy-policy/)•[Terms of Use](https://towardsdatascience.com/website-terms-of-use/)\n© Insight Media Group, LLC 2026•[The New Stack](https://thenewstack.io)•[roadmap.sh](https://roadmap.sh)•[Creator Network](https://insightmediagroup.io/creator-network)\n####  Recommended Articles \nClose\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607686/image?etag=1782161464448&width=500&height=500) How Relevance Models Foreshadowed Transformers for NLP ](https://towardsdatascience.com/how-relevance-models-foreshadowed-transformers-for-nlp/ \"How Relevance Models Foreshadowed Transformers for NLP\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500) Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1 ](https://towardsdatascience.com/javascript-fatigue-you-dont-need-js-to-build-chatgpt/ \"Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500) The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs ](https://towardsdatascience.com/subset-sum-problem-solved-in-linear-time-for-dense-enough-inputs/ \"The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500) Does Your Company Have a Data Strategy? ](https://towardsdatascience.com/does-your-company-have-a-data-strategy-e8944dbec4ae/ \"Does Your Company Have a Data Strategy?\")\n\n\n",
  "body_base_path": "attachments/7e9df354e991/pages/",
  "body_markdown_path": "attachments/7e9df354e991/pages/archived-body.md",
  "local_html": "attachments/7e9df354e991/pages/archived-body.html",
  "body_source": "prior_capture"
}