> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Agentic sales

> Sales from or referred by AI agents, credited to any click, by agentic sales and referring channel.

Sales from or referred by AI agents, credited to any click, by agentic sales and referring channel.

## Example

```sql theme={null}
FROM agentic_sales
  SHOW total_sales, orders
  GROUP BY agentic_sales_channel
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY total_sales DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `total_sales` | Currency | Sales from or referred by AI agents, credited to any click. |
| `orders` | Number | Orders credited. |
| `gross_sales` | Currency | Sales before discounts and returns. |
| `discounts` | Currency | Discounts on the sales. |
| `sales_reversals` | Currency | Returns and other reversals. |
| `net_sales` | Currency | Sales after discounts and reversals. |
| `shipping_charges` | Currency | Shipping charged. |
| `duties` | Currency | Duties charged. |
| `additional_fees` | Currency | Additional fees charged. |
| `taxes` | Currency | Taxes charged. |

## Dimensions

| Dimension | Description |
| - | - |
| `agentic_sales_channel` | The AI agent the order was placed through. |
| `agentic_referring_channel` | The AI agent that referred the order. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `agentic_sales_channel` | Text | The AI agent the order was placed through. |
| `agentic_referring_channel` | Text | The AI agent that referred the order. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `shop.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Sales](https://docs.queryful.app/queryfulql/datasets/sales.md)
* [Orders](https://docs.queryful.app/queryfulql/datasets/orders.md)
* [Order line items](https://docs.queryful.app/queryfulql/datasets/order_lines.md)
* [Returns](https://docs.queryful.app/queryfulql/datasets/returns.md)
* [Restocks](https://docs.queryful.app/queryfulql/datasets/refund_lines.md)
* [Refunds](https://docs.queryful.app/queryfulql/datasets/refunds.md)
* [Sales taxes](https://docs.queryful.app/queryfulql/datasets/sales_taxes.md)
* [Write-offs](https://docs.queryful.app/queryfulql/datasets/sale_write_offs.md)
* [Profitability](https://docs.queryful.app/queryfulql/datasets/profitability.md)
* [Products bought together](https://docs.queryful.app/queryfulql/datasets/product_pairs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.