#!/usr/bin/env python3
"""Days 15-21 data (Week 3)"""
import json

days_data = [
    {"day": 15, "week": 3, "week_title": "ADVANCED SKILLS", "title": "Advanced Prompting Techniques",
     "objective": "Master chain-of-thought reasoning, few-shot prompting, system prompts, and other advanced techniques that dramatically improve AI output quality for complex tasks.",
     "lesson": """Basic prompting gets you basic results. Advanced prompting techniques unlock the full potential of AI models, turning them from helpful assistants into powerful reasoning partners. These techniques are not difficult to learn, but they require understanding how AI models process information.

Chain-of-thought (CoT) prompting is perhaps the single most impactful advanced technique. Instead of asking for a direct answer, you ask the AI to think through the problem step by step. Adding phrases like 'Let us work through this step by step' or 'Show your reasoning at each stage' forces the model to break complex problems into manageable pieces, which dramatically improves accuracy. Research from Google showed that chain-of-thought prompting can improve mathematical reasoning accuracy from under 20% to over 80% on certain benchmarks. It works because AI models, like humans, make fewer errors when they show their work.

Few-shot prompting means providing examples of the input-output pattern you want before making your actual request. Instead of describing what you want in abstract terms, you show the AI two or three examples. For instance, if you want product descriptions in a specific format, provide three examples of product descriptions you love, then say 'Now write one for [your product] following the same pattern.' The AI picks up on style, structure, tone, and formatting cues from your examples far more reliably than from verbal descriptions. Zero-shot means asking without examples; one-shot means one example; few-shot means two to five examples.

System prompts are the persistent instructions that frame the entire conversation. In ChatGPT, these are the custom instructions or the system message if you are using the API. In Claude, this is the initial system prompt. A well-crafted system prompt sets the AI's persona, constraints, response style, and output format for every message in the conversation. Think of it as the AI's operating system for that session. Effective system prompts include: who the AI should be, what it should prioritize, what it should avoid, how it should format responses, and how it should handle uncertainty. A strong system prompt is worth more than any individual message prompt because it shapes every response that follows.""",
     "concepts": ["Chain-of-thought: 'think step by step' dramatically improves complex reasoning accuracy", "Few-shot Prompting: providing examples teaches AI patterns more reliably than descriptions", "System Prompts: persistent instructions that shape the AI's behavior for an entire conversation", "Zero/One/Few Shot: the number of examples you provide before your actual request", "Prompt Chaining: break complex tasks into sequential prompts where each builds on the previous output"],
     "tool_name": "Claude", "tool_purpose": "Test advanced prompting with Claude's system prompt support and long context window", "tool_url": "https://claude.ai", "tool_try": "Create a system prompt for a specific use case, then test chain-of-thought on a complex problem you need to solve",
     "challenge": "Pick a complex task (business analysis, content strategy, technical problem). Solve it three ways: basic prompt, chain-of-thought prompt, and few-shot prompt with 2-3 examples. Compare the quality and depth of each response. Document which technique worked best and why.",
     "pro_tip": "When chain-of-thought is not producing good results, the problem is usually that the task is ambiguous, not that the technique is failing. Clarify exactly what you want before asking the AI to reason through it.",
     "reflection": "Which advanced technique felt most natural to you? How does understanding these methods change your perception of what AI can handle?"},

    {"day": 16, "week": 3, "week_title": "ADVANCED SKILLS", "title": "Custom AI Assistants",
     "objective": "Learn to build custom AI assistants tailored to your specific needs using custom GPTs, memory features, and persona configuration to create specialized tools for recurring workflows.",
     "lesson": """Generic AI is powerful. Custom AI tuned to your specific needs, knowledge, and preferences is transformative. Building custom assistants is the step that moves you from 'someone who uses AI' to 'someone who has AI working for them.'

Custom GPTs in ChatGPT allow you to create specialized assistants with persistent instructions, uploaded knowledge files, and specific capabilities. Think of them as AI employees, each trained for a specific role. You might create a Content Strategist GPT that knows your brand voice, audience demographics, and content pillars. A Client Onboarding GPT that has your processes, templates, and FAQ documents uploaded. A Research Analyst GPT that follows your preferred analysis framework and citation standards. Each one eliminates the need to re-explain context every time you start a new conversation.

Building a good custom GPT requires clear instructions, relevant knowledge, and defined boundaries. Your instructions should cover: the assistant's role and expertise, how it should communicate (tone, length, format), what knowledge it should draw from (uploaded files), what it should do when unsure (ask for clarification vs make assumptions), and what it should never do (make up statistics, give legal or medical advice, etc.). The knowledge files you upload become the assistant's reference library. Upload your SOPs, brand guidelines, product documentation, FAQs, and any reference material the assistant needs.

Memory features are now available in most major AI platforms and represent the next evolution. When enabled, the AI remembers details from previous conversations: your preferences, your projects, your communication style, and important context about your business. This means the AI improves over time, requiring less and less context-setting from you. The key is to actively tell the AI what to remember. Say things like 'Remember that my business is B2B SaaS targeting mid-market companies' or 'Remember that I prefer bullet points over paragraphs.' Over time, your AI assistant becomes genuinely personalized in a way that no generic tool can match.""",
     "concepts": ["Custom GPTs: specialized assistants with persistent instructions and uploaded knowledge", "Knowledge Files: upload SOPs, docs, and references to give your assistant domain expertise", "Instruction Design: define role, tone, boundaries, knowledge sources, and error handling", "AI Memory: persistent context that accumulates across conversations, making AI better over time", "Specialization: multiple custom assistants for different roles outperform one general-purpose assistant"],
     "tool_name": "ChatGPT Custom GPTs", "tool_purpose": "Build specialized AI assistants with custom instructions and uploaded knowledge files", "tool_url": "https://chat.openai.com/gpts/editor", "tool_try": "Create a custom GPT for one of your most frequent tasks. Upload relevant documents and write clear instructions for its role and behavior.",
     "challenge": "Build your first custom GPT (or equivalent in Claude/Gemini). Choose a role that would save you the most time if you had a specialist available on demand. Write the instructions, upload relevant knowledge files, and test it with five real tasks. Refine until the output quality matches what you would produce manually.",
     "pro_tip": "The best custom GPTs have very specific scopes. A 'do everything' assistant is just a regular chatbot with extra steps. An assistant that does one thing exceptionally well, like writing LinkedIn posts in your voice or analyzing competitor pricing, is genuinely useful.",
     "reflection": "If you could have an AI assistant that perfectly understood one area of your work, what would that area be? Why that one specifically?"},

    {"day": 17, "week": 3, "week_title": "ADVANCED SKILLS", "title": "AI for Data and Analytics",
     "objective": "Learn to use AI for analyzing spreadsheets, extracting insights from data, creating reports, and making data-driven decisions without needing programming or statistics expertise.",
     "lesson": """Data analysis has traditionally been a specialist skill requiring knowledge of statistics, programming, and visualization tools. AI has fundamentally changed this. You can now analyze datasets, spot trends, generate reports, and extract actionable insights using natural language, and you do not need to write a single formula.

The most accessible approach is uploading data directly to AI. ChatGPT, Claude, and Gemini can all process CSV files, spreadsheets, and structured data. Upload your sales data, customer feedback, survey results, or financial records and ask questions in plain English: 'What are the top five products by revenue this quarter? How does this compare to last quarter? What trends do you see in the monthly data? Which customer segment has the highest churn rate?' The AI analyzes the data, performs calculations, and presents findings in clear, understandable language.

For spreadsheet users, AI can generate formulas, explain existing ones, and automate repetitive analysis. Instead of searching for the right Excel formula on Google, describe what you want to calculate: 'I need a formula that looks up a customer name in column A, finds their most recent purchase date in column D, and flags anyone who has not purchased in the last 90 days.' The AI provides the formula, explains how it works, and helps you troubleshoot if something goes wrong. This alone can save hours of frustration for anyone who works with spreadsheets regularly.

Insight extraction is where AI adds the most value beyond simple analysis. After processing your data, ask: 'What patterns or anomalies stand out in this data? What story does the data tell? If you were advising a CEO based on this data, what three actions would you recommend?' These meta-questions push the AI beyond number-crunching into strategic thinking. The results are not infallible, but they provide starting points for discussion and decision-making that would otherwise require hiring an analyst or spending days staring at spreadsheets yourself. Always verify specific numbers the AI reports, but use its pattern recognition as a lens for your own judgment.""",
     "concepts": ["Natural Language Analysis: ask questions about your data in plain English, no coding needed", "Formula Generation: describe what you want to calculate, AI writes the spreadsheet formula", "Pattern Recognition: AI can identify trends, anomalies, and correlations humans might miss", "Report Generation: transform raw data into formatted summaries and executive briefs", "Strategic Questioning: ask meta-questions like 'what actions would you recommend' for deeper insights"],
     "tool_name": "ChatGPT Code Interpreter", "tool_purpose": "Upload data files and analyze them with AI-powered code execution for charts, statistics, and insights", "tool_url": "https://chat.openai.com", "tool_try": "Upload a CSV or Excel file of real data (sales, expenses, survey results) and ask five questions about it. Request at least one chart.",
     "challenge": "Find a dataset relevant to your work (sales data, website analytics, survey results, or financial records). Upload it to ChatGPT and ask it to: summarize key metrics, identify the three most important trends, flag any anomalies, and recommend three actions based on the data. Evaluate whether its recommendations make sense.",
     "pro_tip": "When uploading sensitive business data to AI, consider anonymizing it first. Replace company names with Company A, B, C. Remove personally identifiable information. The analysis quality stays the same, and your data privacy is protected.",
     "reflection": "What data do you currently collect but rarely analyze? What decisions could you make better if you were actually looking at the numbers?"},

    {"day": 18, "week": 3, "week_title": "ADVANCED SKILLS", "title": "AI for Automation",
     "objective": "Understand the fundamentals of workflow automation using tools like Zapier, Make.com, and n8n, and learn how to connect AI to your existing tools for hands-free operation.",
     "lesson": """Automation is where AI transitions from a tool you use to a system that works for you. The previous lessons covered using AI manually: you type a prompt, get a result, and apply it. Automation connects AI to your existing tools so that workflows happen automatically, triggered by events rather than your manual effort.

Zapier is the most beginner-friendly automation platform. It works on a simple trigger-action model: when something happens in one app, do something in another app. Combined with AI, this becomes powerful. Example: when a customer fills out your contact form (trigger), Zapier sends their information to ChatGPT to draft a personalized welcome email (AI action), then sends that email through your email tool (action). The entire sequence happens without you lifting a finger. Zapier connects to over 6,000 apps and has built-in AI capabilities through its AI by Zapier feature.

Make.com (formerly Integromat) offers more visual and complex automation flows. It is better for multi-step processes with conditional logic: if this, then that, otherwise do something else. For AI-powered automations, Make.com connects to OpenAI's API directly, allowing you to build sophisticated workflows. A practical example: every morning, Make.com pulls your calendar events, sends them to GPT to generate a daily brief with preparation notes for each meeting, and delivers the brief to your Slack or email.

The key principle of automation is starting simple and expanding gradually. Do not attempt to automate your entire business in a day. Pick one workflow that is both repetitive and clearly defined, automate that single workflow, run it for two weeks to catch edge cases, then move to the next one. The most successful automations follow the 80/20 rule: automate the 80% that is routine and predictable, keep human judgment for the 20% that requires nuance. Your first automation should take no more than an hour to set up and should handle a task you currently do at least once a day.""",
     "concepts": ["Trigger-Action Model: automations start with an event (trigger) and execute steps (actions)", "Zapier: beginner-friendly, 6000+ app connections, built-in AI capabilities", "Make.com: visual automation builder for complex multi-step workflows with conditional logic", "n8n: self-hosted, open-source alternative for technical users who want full control", "Progressive Automation: start with one simple workflow, validate it, then expand gradually"],
     "tool_name": "Zapier", "tool_purpose": "Connect apps and automate workflows with a simple trigger-action model, including built-in AI steps", "tool_url": "https://zapier.com", "tool_try": "Create a free Zapier account and build a simple automation: when you receive an email with a specific label, summarize it with AI and send the summary to Slack or your phone",
     "challenge": "Map out three workflows in your daily routine that follow a trigger-action pattern. Choose the simplest one and build it in Zapier or Make.com. It does not need to include AI yet. Just get comfortable with the concept of automated triggers and actions.",
     "pro_tip": "Before automating a workflow, do it manually ten times while writing down every single step. Automation fails when steps are ambiguous. The documentation process itself often reveals inefficiencies you can eliminate before automating.",
     "reflection": "What repetitive task do you do most frequently that follows a predictable pattern? If it happened automatically, how would that change your day?"},

    {"day": 19, "week": 3, "week_title": "ADVANCED SKILLS", "title": "AI Ethics and Limitations",
     "objective": "Understand the real limitations of AI including hallucinations, bias, and privacy concerns. Develop a personal ethical framework for AI use that protects you and your stakeholders.",
     "lesson": """AI is powerful, but it is not infallible, and understanding its limitations is just as important as knowing its capabilities. The three most critical issues you need to understand are hallucination, bias, and privacy.

Hallucination is the term for when AI generates information that sounds plausible and confident but is factually wrong. This includes citing studies that do not exist, attributing quotes to people who never said them, making up statistics, and presenting fictional events as real. Hallucination happens because language models are pattern-matching engines, not knowledge databases. They generate the most statistically likely next word based on their training data, and sometimes that statistical likelihood produces convincing nonsense. The rate varies by model and task: factual questions about obscure topics are most prone to hallucination, while creative writing and structural tasks are least affected. Your defense is verification. Never present AI-generated facts, statistics, or citations without checking them against primary sources.

Bias in AI reflects the biases present in its training data, which is drawn from the internet and published text, both of which carry historical and cultural biases. This can manifest as gender bias in job descriptions, racial bias in image generation, cultural bias in recommendations, and political bias in analysis. You cannot eliminate these biases, but you can mitigate them by being aware, by asking AI to present multiple perspectives, and by reviewing outputs through a critical lens. If you are using AI for hiring, customer-facing content, or any decision that affects people, bias awareness is not optional, it is a responsibility.

Privacy is the third pillar. When you type information into an AI tool, you are sending it to a server owned by a company. Most major AI companies state that they may use your inputs to improve their models, though many offer opt-out settings and enterprise tiers with stronger privacy guarantees. The practical rule: never put anything into a public AI tool that you would not want a stranger to read. This includes client data, proprietary business information, personal health or financial details, and confidential communications. Many organizations now have formal AI use policies, and if yours does not, consider drafting one.""",
     "concepts": ["Hallucination: AI generates plausible-sounding but factually incorrect information", "Verification Protocol: always check AI-generated facts, stats, and citations against primary sources", "Training Data Bias: AI reflects biases in its training data across gender, race, culture, and politics", "Data Privacy: information you input may be stored, processed, and used to train future models", "AI Use Policies: formal guidelines for what data can and cannot be shared with AI tools"],
     "tool_name": "Perplexity AI", "tool_purpose": "Sourced, cited AI responses that make verification easier by showing where information comes from", "tool_url": "https://perplexity.ai", "tool_try": "Ask both ChatGPT and Perplexity the same factual question. Compare: does ChatGPT provide sources? Does Perplexity's sourced answer match what ChatGPT claims?",
     "challenge": "Deliberately try to catch AI hallucinating. Ask it specific factual questions about your area of expertise, request citations for claims, and verify what it provides. Document three examples of correct information and three examples of errors or hallucinations. Share your findings.",
     "pro_tip": "The most dangerous hallucinations are the ones that sound the most confident. AI does not signal uncertainty the way humans do. If an AI states something with complete confidence, that tells you nothing about whether it is actually correct. Verify anyway.",
     "reflection": "How does understanding AI's limitations change how you plan to use it? Are there areas where you were trusting AI too much, or not enough?"},

    {"day": 20, "week": 3, "week_title": "ADVANCED SKILLS", "title": "AI for Learning Faster",
     "objective": "Transform AI into your personal tutor using Socratic questioning, spaced repetition, and adaptive learning techniques that accelerate skill acquisition in any domain.",
     "lesson": """AI is arguably the best personal tutor ever created. It is infinitely patient, available around the clock, adjusts to your level instantly, and can explain any concept in dozens of different ways until one clicks. Most people use AI to get answers. The real power is using it to learn.

The Socratic method, named after the Greek philosopher who taught through questions rather than lectures, is devastatingly effective with AI. Instead of asking AI to explain a concept, ask it to teach you through questions. Prompt: 'I want to learn about [topic]. Instead of explaining it directly, ask me a series of questions that guide me to understand it myself. Start with what I already know and build from there. After each of my answers, provide brief feedback and ask the next question.' This approach forces active engagement, which research shows produces 50% better retention than passive reading. The AI adapts its questions based on your answers, creating a genuinely personalized learning path.

Spaced repetition is a learning technique where you review material at increasing intervals: one day after learning, then three days, then seven, then fourteen. This aligns with how human memory works and is the most scientifically supported method for long-term retention. Use AI to generate spaced repetition flashcards from any material: 'Create 20 question-and-answer flashcards from this [document/topic]. Each question should test understanding, not just recall. Order them from fundamental to advanced.' Then review them on the spaced schedule, using AI to explain any you get wrong.

Adaptive difficulty is another advantage AI has over traditional learning resources. Books and courses are fixed: they cannot adjust to your level in real-time. AI can. Start by telling AI your current understanding level: 'I understand basic statistics but have never done regression analysis.' The AI calibrates its explanations to bridge exactly the gap between what you know and what you need to learn. As you progress, tell it: 'That was easy, increase the complexity' or 'I did not follow that, explain it more simply.' No human tutor can match this level of personalized, patient, infinitely adjustable instruction at this price point, which is free.""",
     "concepts": ["Socratic Method: AI teaches through guided questions rather than direct explanation", "Active Learning: engaging with material through questions produces 50% better retention than passive reading", "Spaced Repetition: reviewing at increasing intervals (1-3-7-14 days) maximizes long-term retention", "Adaptive Difficulty: AI adjusts complexity based on your current understanding level", "Multi-modal Explanation: ask AI to explain the same concept as an analogy, a story, a diagram, and a technical definition"],
     "tool_name": "ChatGPT or Claude", "tool_purpose": "Personalized tutoring through Socratic dialogue, flashcard generation, and adaptive explanations", "tool_url": "https://chat.openai.com", "tool_try": "Pick a topic you want to learn and ask AI to teach you using the Socratic method. Notice how different it feels from reading an article.",
     "challenge": "Choose a skill or knowledge area you have been wanting to learn. Use AI as a tutor for 20 minutes using the Socratic method. Then generate 15 spaced repetition flashcards from the session. Schedule reviews for days 1, 3, 7, and 14. Track what you remember at each review.",
     "pro_tip": "The best learning prompt includes your context: what you already know, why you are learning this, and how you plan to apply it. AI that understands your motivation and background provides dramatically more relevant and memorable explanations.",
     "reflection": "What subject have you been meaning to learn but never found the right resource? Could AI tutoring make it more accessible?"},

    {"day": 21, "week": 3, "week_title": "ADVANCED SKILLS", "title": "Week 3 Review and Build Something",
     "objective": "Consolidate advanced AI skills from this week and apply them by building a tangible project: a custom AI assistant, an automated workflow, or a learning system that demonstrates your new capabilities.",
     "lesson": """Week 3 has taken you from competent AI user to advanced practitioner. You now understand chain-of-thought reasoning, few-shot prompting, custom assistant building, data analysis, workflow automation, AI ethics, and accelerated learning techniques. These are not just concepts. They are tools that compound in value when combined.

The build challenge today is your proof of mastery. Knowing about advanced prompting is different from having built a custom GPT that uses it. Understanding automation theory is different from having a live Zapier workflow processing your emails. Reading about AI ethics is different from having a documented policy for your team. Building makes knowledge permanent because it forces you to encounter and solve the practical problems that theory glosses over.

Choose one of three project tracks based on your priorities. Track A, Custom AI Assistant: build a fully configured custom GPT or Claude project for a real use case in your work. Include system prompts using chain-of-thought and few-shot techniques, upload relevant knowledge files, test with ten real queries, and document the setup so others can replicate it. Track B, Workflow Automation: design and implement an automated workflow that connects at least three tools, includes an AI step, and runs on a real trigger from your daily work. Document the workflow with screenshots and test results. Track C, Learning System: build a comprehensive AI-powered learning system for a topic important to you, including a Socratic dialogue script, spaced repetition flashcards, and a 30-day self-study plan generated and refined with AI.

Whichever track you choose, the deliverable should be something you will actually use next week, not a theoretical exercise. The test of a good build project is simple: does it save you time or make you better at something you care about? If the answer is yes, you have succeeded. If you find yourself building something impressive but impractical, pivot to something useful. Practicality beats impressiveness every time in the real world of AI application.""",
     "concepts": ["Build to Learn: constructing real projects cements knowledge that reading alone cannot", "Three Project Tracks: custom assistant, workflow automation, or learning system", "Practical over Impressive: a useful tool beats a clever demo every time", "Combinatorial Power: advanced techniques multiply in value when combined in real systems", "Documentation: writing down how your build works creates a reference for future improvements"],
     "tool_name": "Your Choice", "tool_purpose": "Select the tool that best fits your chosen project track", "tool_url": "https://chat.openai.com", "tool_try": "Start building immediately. Spend 30 minutes on your chosen track, even if the project is not finished today.",
     "challenge": "Complete a build project from one of the three tracks. Spend at least 45 minutes on it. The project must be functional, not just designed. Test it with real inputs. Document: what you built, what tools you used, what worked, what you would improve, and how much time it will save you going forward.",
     "pro_tip": "The most useful build projects solve problems you actually have, not problems you think you should have. If your biggest daily frustration is writing client proposals, build for that, even if it seems less exciting than a data analytics pipeline.",
     "reflection": "What did building something teach you that reading about it could not? What unexpected challenges did you encounter?"},
]

with open('/home/melai/Documents/days_data_w3.json', 'w') as f:
    json.dump(days_data, f)

print(f"Part 3: Saved {len(days_data)} days data (Week 3)")
