Skip to main content

Overview

Automate e-commerce tasks with AGI agents: compare prices, research products, monitor inventory, and find deals.
Pro Tip: Use agi-0-fast for simple price checks and agi-0 for complex research tasks.

Use Cases

Product Research

Comprehensive product analysis, reviews, and specifications

Price Monitoring

Track prices and get alerts when they drop

Inventory Tracking

Monitor stock availability across retailers

Deal Finding

Find coupons, deals, and automate purchases

Quick Examples

Price Comparison

Compare prices across multiple retailers:
import { AGIClient } from 'agi';
const client = new AGIClient({ apiKey: 'your_api_key' });

const session = await client.createSession('agi-0-fast');
try {
    const prices = await session.runTask(`
        Compare prices for: Sony WH-1000XM5 Headphones
        Check: amazon.com, bestbuy.com, target.com
        Return JSON array with: retailer, price, available, url
    `);
} finally {
    await session.delete();
}

Best Practices

Use Fast Model

Use agi-0-fast for simple price checks (faster, cheaper)

Request JSON

Always request JSON output for easy parsing

Specify Retailers

Specify exact retailers to get consistent results

Handle Edge Cases

Account for out of stock items and price variations

Best Practices

Learn session management

Task Design

Write better task instructions