# Intraction

### What Are Interactions?

Interactions are the key ways your customers connect with your products in the Velora app. These are actions like purchases, where a customer buys an item, or other activities you can track. Think of interactions as the conversations between your customers and your store—it’s how they show what they like or need.

Velora’s AI uses these interactions to learn and get smarter. For example, when a customer buys milk or bread, the AI notices and starts to understand their preferences. Over time, it learns which items a user enjoys, like snacks or spices, and which items go well together, like rice and curry powder. This helps the AI build a clear picture of both your customers and your products.

By analyzing interactions, the AI can suggest the right products to the right people. If a customer often buys dairy, the AI might recommend cheese next time. It also figures out which items are popular or related, making your campaigns—like emails or ads—more effective. The more interactions you upload, the better Velora understands your business, leading to smarter recommendations and happier customers!

1. **Interaction Upload Flow**:
   * **Step 1**: Accessing the "Interactions" section and selecting "Purchase" with "Interaction Properties."
   * **Step 2**: Uploading a file with purchase data
   * Note file should have <mark style="color:$danger;">item\_id</mark> and <mark style="color:$danger;">user\_id</mark> mandatory columns.
   * Optional columns include timestamp, quantity, and price.
2. **Sample Response**:

   * Uses the structure from your previous request, tailored to purchase interactions (e.g., `user_id`, `item_id`, `purchase_amount`).
   * Includes 50 rows with 45 successes, 3 failures, and 2 skips, with detailed examples.

```
{
    "processed": 150,
    "succeeded": 120,
    "skipped": 15,
    "failed": 15,
    "success_rate": "80.00%",
    "completion_rate": "90.00%",
    "failed_items": [
        {
            "row_number": 1,
            "user_id": "user-125",
            "item_id": "item-003",
            "error": "Invalid purchase amount: -5",
            "timestamp": "2025-08-22T15:12:00Z"
        },
        {
            "row_number": 2,
            "user_id": "user-126",
            "item_id": "item-004",
            "error": "Missing required field: item_id",
            "timestamp": "2025-08-22T15:12:01Z"
        },
        {
            "row_number": 3,
            "user_id": "user-127",
            "item_id": "item-005",
            "error": "Timestamp format invalid",
            "timestamp": "2025-08-22T15:12:02Z"
        }
    ],
    "has_more_failures": false
}
```
