1
3 Comments

Build Log #2 — Pricewise is now fully agent-powered behind the scenes 🤖

🚧 Build Log #2 — From prompt spaghetti to agents!

Pricewise just got a backend brain upgrade:
I've now wired up a full OpenAI agent framework to power the pricing simulation engine.

Here’s what happens when a user drops in a URL or SaaS description:

1️⃣ A content extraction tool summarizes the product
2️⃣ A persona generator agent maps out 4 virtual users (e.g. indie dev, startup CTO…)
3️⃣ A pricing recommendation agent decides what each persona would pay and why
4️⃣ A feedback agent critiques the pricing structure and suggests improvements

All of this now runs without me stitching together prompts manually. 🧠


What’s next?

→ Hooking up these agent results into the front-end
→ Letting users tweak parameters (personas, CAC, churn…)
→ Then instantly re-run simulations and revenue projections

This will make Pricewise more than a one-off simulator — it becomes a dynamic testing lab for pricing strategies.

I’ll share the first full UX loop soon. If you’d like early access to test yours, just DM me or visit https://pricewise.cc

Let’s make pricing less of a guessing game 💡

posted to Icon for group Building in Public
Building in Public
on April 21, 2025
  1. 1

    Hi Jack, hoping to talk to you about your product and gaining early access. Can't see how to DM you so hope you see this. Thanks!

  2. 1

    {
    "virtualUsers": [
    {
    "name": "Airbnb Host",
    "business_type": "Individual Rentals",
    "business_size": "Small (1-5 properties)",
    "needs": ["Dynamic Pricing", "Cost-effective", "Easy to use"],
    "budget": 100,
    "price_sensitivity": 4.5,
    "churn_risk": 4.1,
    "lifetime_value": 1200
    },
    {
    "name": "Property Manager",
    "business_type": "Mid-size Property Management",
    "business_size": "Medium (50-100 properties)",
    "needs": ["Portfolio Analytics", "Market Dashboards", "Revenue Estimator Pro"],
    "budget": 500,
    "price_sensitivity": 3.0,
    "churn_risk": 2.8,
    "lifetime_value": 5400
    },
    {
    "name": "Aparthotel Owner",
    "business_type": "Established Accommodation Chain",
    "business_size": "Large (100+ units)",
    "needs": ["Dynamic Pricing", "Portfolio Analytics", "Revenue Estimator Pro"],
    "budget": 2000,
    "price_sensitivity": 2.5,
    "churn_risk": 1.7,
    "lifetime_value": 24000
    }
    ],
    "pricingModels": [
    {
    "tier_name": "Starter",
    "price": 39.99,
    "billing_cycle": "monthly",
    "features": ["Dynamic Pricing", "Basic Support"],
    "target_users": "Airbnb Hosts",
    "value_proposition": "Cost-effective solution providing essential pricing tools for individual hosts."
    },
    {
    "tier_name": "Growth",
    "price": 99.99,
    "billing_cycle": "monthly",
    "features": ["All Starter features", "Portfolio Analytics", "Enhanced Support"],
    "target_users": "Small Property Managers",
    "value_proposition": "Advanced analytics for managers to optimize multiple properties effectively."
    },
    {
    "tier_name": "Business",
    "price": 199.99,
    "billing_cycle": "monthly",
    "features": ["All Growth features", "Market Dashboards", "Priority Support"],
    "target_users": "Medium-sized Property Managers and Aparthotel Owners",
    "value_proposition": "Comprehensive insights and competitive analysis for better decision-making."
    },
    {
    "tier_name": "Enterprise",
    "price": 499.99,
    "billing_cycle": "monthly",
    "features": ["All Business features", "Revenue Estimator Pro", "Dedicated Account Manager"],
    "target_users": "Large Property Management Companies and Aparthotel Chains",
    "value_proposition": "Robust tools and personalized support to drive large-scale operations and revenue."
    }
    ],
    "userFeedback": [
    {
    "user_type": "Airbnb Host",
    "selected_tier": "Starter",
    "satisfaction_score": 6.5,
    "price_perception": "Reasonable for basic needs",
    "likelihood_to_purchase": 0.60,
    "likelihood_to_churn": 0.40,
    "feedback_comments": "The Starter plan meets the basic requirements but lacks advanced features. Price is within my budget.",
    "suggestions": "Consider adding a few more features to the Starter plan to enhance its value."
    },
    {
    "user_type": "Property Manager",
    "selected_tier": "Growth",
    "satisfaction_score": 8.0,
    "price_perception": "Great value",
    "likelihood_to_purchase": 0.75,
    "likelihood_to_churn": 0.20,
    "feedback_comments": "Growth plan offers an excellent range of features for the price. Fits well with mid-sized portfolio management.",
    "suggestions": "Addition of automated reporting tools would further enhance the plan's value."
    },
    {
    "user_type": "Aparthotel Owner",
    "selected_tier": "Business",
    "satisfaction_score": 7.2,
    "price_perception": "Slightly expensive",
    "likelihood_to_purchase": 0.65,
    "likelihood_to_churn": 0.30,
    "feedback_comments": "Business plan is feature-rich but a bit pricey for the size of my operations. I appreciate the professional support.",
    "suggestions": "Introduce tiered pricing within the Business plan to cater to varying sizes of aparthotels."
    }
    ],
    "recommendation": {
    "average_satisfaction": 7.23,
    "price_sensitivity_issues": "Aparthotel owners find the Business plan slightly expensive",
    "feature_gaps": "Airbnb hosts feel the Starter plan lacks sufficient features",
    "primary_churn_risks": "Airbnb Hosts may churn due to feature limitations; Aparthotel Owners due to pricing concerns",
    "recommended_adjustments": "Enhance Starter plan with more features to improve satisfaction and consider flexible pricing models for Business plan"
    }
    }

  3. 1

    # Create SaaS Analysis Agent
    saas_analysis_agent = Agent(
    name="SaaS Analyzer",
    instructions="""You are a professional SaaS product analysis expert, responsible for analyzing SaaS website content and generating pricing recommendations.

    Please perform the following tasks:
    1. If a URL is provided, use the fetch_website_content tool to get the website content
    2. If more information is needed, use the web_search tool to search for relevant content, this is a powerful web search tool
    3. Use the generate_user_persona tool to generate user personas, requiring the following parameters:
       - industry: The industry the product belongs to (required)
       - product_features: List of product features (required)
    4. Based on the information obtained, generate 4 virtual user profiles representing different customer segments
    5. Create 3 different pricing models for the SaaS product
    6. Simulate feedback from each virtual user on each pricing model
    7. Provide final pricing strategy recommendations
    
    Return the results in JSON format, including the following fields:
    - virtualUsers: List of virtual users
    - pricingModels: List of pricing models
    - userFeedback: List of user feedback
    - recommendation: Final recommendation
    
    Ensure the JSON format is correct and includes all required fields.
    """,
    tools=[fetch_website_content, web_search_tool,
        persona_generator_agent.as_tool(
            tool_name="generate_user_persona",
            tool_description="Generate user personas based on product industry and features",
        ),
        pricing_strategy_agent.as_tool(
            tool_name="generate_pricing_strategy",
            tool_description="Generate optimal pricing plans based on product features, competitor information, and user personas"
        ),
        user_feedback_agent.as_tool(
            tool_name="generate_user_feedback",
            tool_description="Generate user feedback based on pricing plans and user personas"
        )
    
    ],
    

    )

Trending on Indie Hackers
I spent $0 on marketing and got 1,200 website visitors - Here's my exact playbook User Avatar 52 comments Veo 3.1 vs Sora 2: AI Video Generation in 2025 🎬🤖 User Avatar 26 comments I built eSIMKitStore — helping travelers stay online with instant QR-based eSIMs 🌍 User Avatar 20 comments Codenhack Beta — Full Access + Referral User Avatar 20 comments 🚀 Get Your Brand Featured on FaceSeek User Avatar 18 comments Day 6 - Slow days as a solo founder User Avatar 16 comments