Skip to main content
BrainPredict CommerceGetting Started

BrainPredict Commerce First Steps Tutorial

15 min readLast updated: January 2, 2025

First Steps Tutorial

A comprehensive tutorial to help you take your first steps with BrainPredict Commerce.

What You'll Learn

  • Setting up your BrainPredict Commerce account
  • Configuring your first feature
  • Testing recommendations
  • Monitoring performance
  • Optimizing results

Tutorial: Product Recommendations

1. Create Your Account

Sign up at brainpredict.ai/signup and choose your plan.

2. Get Your API Key

Navigate to Portal → Settings → API Keys and generate a new key.

3. Install SDK

pip install brainpredict-commerce-sdk

4. Initialize Client

from brainpredict-commerce import BrainPredict CommerceClient

client = BrainPredict CommerceClient(api_key='YOUR_API_KEY')

5. Send Test Data

# Track a product view
client.personalization.track_event(
    user_id='test_user_1',
    event_type='product_view',
    product_id='test_product_1'
)

# Track a purchase
client.personalization.track_event(
    user_id='test_user_1',
    event_type='purchase',
    product_id='test_product_1',
    metadata={'price': 99.99}
)

6. Get Recommendations

recommendations = client.personalization.get_recommendations(
    user_id='test_user_1',
    context='homepage',
    limit=5
)

for rec in recommendations:
    print(f"Product: {rec['product_id']}, Score: {rec['score']}")

7. Monitor Performance

Check your analytics dashboard to see:

  • Click-through rate (CTR)
  • Conversion rate
  • Revenue impact
  • User engagement

Need More Help?

Our support team is here to assist you with BrainPredict Commerce

BrainPredict [Slug] - AI-Powered Platform