Vibe Coding With Desktop Commander: Let AI Talk with Google Analytics
By Eduards Ruzga
Key Concepts:
- AI Assistants
- Google Analytics Integration
- Desktop Commander (Tool for AI access to computer)
- Prompt Engineering
- Google Cloud CLI
- Python Scripting
- Data Analysis
- Custom Dashboards
- API Integration
- Pre-flight Checks
1. Introduction and Goal (0:00-0:40)
- Edwards and Mitri from Desktop Commander demonstrate connecting an AI assistant to Google Analytics.
- The goal is to use AI to analyze Google Analytics data and gain insights.
- They will use a pre-built prompt from their website's prompt library.
2. Prompt Overview and Initial Issues (0:40-1:30)
- The prompt is designed to set up the connection and analyze traffic.
- Initial attempt fails; the AI assistant isn't using Desktop Commander as expected.
- Mitri explains that the Google Analytics example is a case study for building connectors to data sources using Desktop Commander.
3. Desktop Commander Explanation (1:30-2:30)
- Desktop Commander allows AI assistants to access and use your computer.
- Use cases include connecting to external systems via CLIs and REST APIs.
- The prompt performs pre-flight checks (Python, Google Cloud CLI) and helps install missing components.
4. Troubleshooting and Starting from Scratch (2:30-4:00)
- The assistant detects existing configurations, so they decide to start from a cleaner state.
- Edwards removes pre-existing scripts and authorizations.
- They emphasize that this approach has been used with BigQuery, CRM, and other SaaS services.
5. Re-running the Prompt and Authorization (4:00-5:30)
- They re-run the prompt after cleaning up the environment.
- The assistant checks for Python and Google Cloud API.
- It prompts for a project ID and guides the user through Google Cloud authorization via a pop-up notification triggered by the Google Cloud CLI.
6. Google Cloud CLI Manipulation (5:30-6:30)
- The AI assistant manipulates the Google Cloud CLI to enable access to Google Analytics.
- This demonstrates the power of Desktop Commander in working with CLI tools.
7. AI Agent Analogy and Personal Assistant Concept (6:30-7:30)
- The Google Analytics integration is likened to a personal assistant sitting in the chat, ready to provide insights.
- The assistant writes Python scripts to manipulate and analyze data in Google Analytics.
8. Initial Data Analysis and Insights (7:30-9:00)
- The assistant retrieves a list of tracked properties.
- It analyzes data for the landing page, reporting users, sessions, and traffic sources.
- Insights include the dominance of desktop users (86%) and popular pages (homepage, prompt library, career page).
- Example: "In last 30 days we had 4,000 users, 7,000 sessions...top traffic sources from us and so on and so on that it's organic and direct."
9. Interactive Brainstorming and Custom Dashboard Creation (9:00-11:00)
- Mitri asks the assistant to show user trends.
- They decide to create a custom dashboard app with a Python backend and HTML frontend.
- The assistant starts coding the dashboard.
10. Dashboard Demo and Speed of Development (11:00-12:00)
- They emphasize that the entire process (connecting to Google Analytics, getting data, creating a dashboard) took only 10 minutes.
- Future runs will be faster due to the pre-configured setup.
- Users can ask the assistant to create scripts for specific metrics (daily/monthly active users).
11. Importance of Instructions and Context (12:00-13:00)
- They recommend creating instructions for using CLI tools to provide context for future AI interactions.
- Edwards plans to ask the assistant to create a Markdown file with instructions.
12. Dashboard Results and Trend Analysis (13:00-14:00)
- The dashboard displays active users and trends.
- They notice a spike around September 17th and ask the assistant to investigate.
13. Investigating the Spike and Finding the Source (14:00-15:00)
- The assistant identifies the spike on September 16th and attributes it to a Medium article.
- It attempts to provide a link to the article.
14. Correcting the Link and Demonstrating Browser Manipulation (15:00-16:00)
- The initial link is incorrect, but the assistant eventually finds the correct one.
- This demonstrates the assistant's ability to manipulate tools, including the browser.
15. Broader Applications and API Integrations (16:00-17:30)
- They suggest replacing Google Analytics with other services like Mixpanel or CRM.
- They connect to Trello, Atlassian products, CRM, and Tally forms.
- Mitri shares an example of integrating surveys into an application, working with both the survey API and the code displaying the form.
16. Combining Data Sources and Customization (17:30-18:30)
- They propose combining Google Analytics data with marketing spend data to analyze traffic relevance.
- They emphasize the ability to customize prompts and scripts to achieve desired results.
- Desktop Commander allows managing prompts, context, and history with files, enabling export and improvement.
17. Identifying Referral Sources and User Demographics (18:30-19:00)
- The assistant identifies a proxy CDN (related to Teams) as a referral source.
- It reveals that the majority of users from that source are from India, England, and the US.
18. Conclusion and Call to Action (19:00-20:30)
- They summarize the insightful information gained for product managers, marketing teams, and salespeople.
- They encourage viewers to suggest other data sources for integration.
- They invite viewers to join their Discord server for questions, ideas, and integration requests.
- They promote Desktop Commander and encourage viewers to try it.
Main Takeaways/Synthesis:
The video demonstrates how Desktop Commander can be used to connect an AI assistant to Google Analytics, enabling powerful data analysis and custom dashboard creation. The key is prompt engineering and leveraging the AI's ability to interact with CLI tools and APIs. This allows users to quickly gain insights, automate reporting, and integrate data from various sources, ultimately empowering them to make data-driven decisions without relying on specialized technical skills. The speed and flexibility of this approach are highlighted as major advantages.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

Why Does This Guy Appear In Kids Videos?
sphynx

TIC en las Organizaciones - Electiva Complementaria II Unisimon
Julieth Güell S

How to Tame Your Advice Monster | Michael Bungay Stanier | TED
TED

Margaret Heffernan: Why it's time to forget the pecking order at work
TED

The importance of psychological safety: Amy Edmondson
The King's Fund

What Is Psychological Safety?
Harvard Business Review

13-Conflict Management: Listening in Conflict
Deliberate Development