conversion_rate_per_date
ChatGPTPRIORITY TOOL for sales performance: revenue, sales count, conversion rate, UPT (units per transaction, 'PA' in Portuguese), average ticket and average item price per store for a period, plus camera uptime. Item-level metrics are only meaningful for stores with an ERP sales integration. Set includeDetails for the day-by-day breakdown. Defaults to every store the user can access; call get_stores first to target specific ones.
conversion_rate_per_hour
ChatGPTConversion rate by hour of the day: visitors, sales, revenue and conversion for each hour, per store. Takes a period of up to 92 days ('conversion per hour over the last 7 days') or a single day (dateBegin = dateEnd); each hour is summed over every day of the period, so 14 means 14:00-14:59 across all those days. Sales are counted in the hour they were rung up and visitors in the hour they entered, so a single hour can read above the store's daily conversion. Narrow to a time window with startHour/endHour; the summary covers the whole window, so use summary.average_conversion_rate_percent rather than averaging the hourly rates. For period totals or a day-by-day breakdown use conversion_rate_per_date; for flow only use get_flow_per_hour. Defaults to every store the user can access; call get_stores first to target specific ones.
corridas_infos
ChatGPTPRIORITY TOOL when the user asks about races (corridas) between stores or between the sellers of a store. Returns each race running in the period with its KPI, dates, participating stores and, with includeRanking, the current standings. Answers 'which store is leading the race?', 'how is store X doing in the race?' and 'how is the race in store Y going?' (that last one is a seller race). Only stores with AlterVez are reported on; call get_stores first to target specific ones.
create_meta
ChatGPTCreate a goal (meta) for ONE store, with one or more revenue tiers, using the same rules as the /api/meta/tiered/create API. Requires the admin or metaEdit permission. Workflow: (1) resolve the store with get_stores; (2) call get_meta_suggestions for that store and period and show the user the suggested revenue, average ticket and conversion; (3) agree on the revenue tiers with the user; (4) call this tool with dryRun: true and show the preview; (5) only after the user explicitly confirms, call it again with the same arguments and dryRun: false. Values use integers with two implied decimals: revenue and averageTicket in cents (BRL 1,234.56 -> 123456), conversionRatio as percent x100 (12.5% -> 1250), upt x100 (2.3 -> 230). averageTicket and conversionRatio are optional: when omitted they are estimated from the store's history, and the call fails if there is not enough history. The visitors target is derived from revenue / conversion / average ticket. Seller goals cannot be set here: the system splits each tier evenly among the store's active sellers.
get_bonification_results
ChatGPTPRIORITY TOOL when the user asks about bonuses, bonifications, commissions or prizes ('bonificação', 'comissão', 'premiação'). Calculates, for one calendar month, how much each store manager and each seller earns from every active bonification. Only AlterVez stores have bonifications. Money is in currency units (BRL). Two bonification types exist: 'value' pays from the beneficiary's revenue in the month, picking the revenue tier with the lowest revenueUpTo that still covers the revenue (revenueUpTo null = no ceiling); 'meta' pays from the revenue made during a linked goal (meta) that ends in the month, by the highest goal tier reached (seller goals for goalScope 'seller', the store goal for goalScope 'store'); nextTier says how much revenue is missing for the next prize. prizeType 'percentage_of_revenue' means the prize is a % of that revenue, 'fixed_value' means the prize is the amount itself. hasGoalLinked false means the linked goal has no targets for that seller/store or does not end in the month, so it pays nothing. Sellers listed in blockedFromBonificationIds were deliberately excluded from those bonifications. monthStatus is in each store's local time; in a month still in progress the values reflect the revenue made so far, not a projection. Only the user's own company is covered: storesOutsideCompany lists stores of other companies that were left out, whose bonifications are unknown, not absent. Defaults to every AlterVez store the user can access; call get_stores first to target specific ones.
get_bonifications
ChatGPTLists how the bonifications (bonuses, commissions, prizes: 'bonificações', 'comissões', 'premiações') are configured: who receives them (beneficiary 'seller' or 'manager'), the rule, the prizes, the months they are valid in, the stores they apply to, the sellers blocked from them. Two types exist: 'value' pays from the beneficiary's revenue in each month, picking the revenue tier with the lowest revenueUpTo that still covers the revenue (revenueUpTo null = no ceiling); 'meta' pays the n-th prize in goalTierPrizes for reaching the n-th lowest revenue tier of a linked goal ending in the month (goal tiers beyond the last prize pay the last one), using seller goals for goalScope 'seller' and the store goal for 'store'. prizeType 'percentage_of_revenue' means the prize is a % of that revenue, 'fixed_value' means the amount itself (BRL). status is 'active', 'scheduled' (starts in a later month) or 'ended', by each store's local date. Use get_bonification_results for how much each manager and seller earned in a month. Only AlterVez stores have bonifications; only bonifications of AlterVez stores the user can access are listed, with only those stores. Only the user's own company is covered: storesOutsideCompany lists stores of other companies that were left out, whose bonifications are unknown, not absent.
get_flow_per_day
ChatGPTPRIORITY TOOL when the user asks about flow, traffic or visitor volume. Returns the visitor count and daily mean per store, day by day. Stores with no measured flow in the period are omitted. Defaults to every store the user can access; call get_stores first to target specific ones.
get_flow_per_hour
ChatGPTBreaks the visitor flow of a SINGLE day down hour by hour, for one or more stores. Use it for peak-time questions ('busiest hours') with responseType 'best_hours', or for a count inside a time window ('visitors between 10 and 13') with 'total_only' plus startHour/endHour. For whole days or a period, use get_flow_per_day instead. Hours with no measured flow are omitted, but a store that was measured and saw nobody in the window is reported with a total of zero, not left out. Defaults to every store the user can access; call get_stores first to target specific ones.
get_flow_per_line
ChatGPTPRIORITY TOOL when the user asks about flow through corridors, aisles, entrances or other counting lines inside a store (multiflow). Returns the total flow per line over the whole period, highest first, plus the store total. When the user names no period, use the last 7 days. Defaults to every store with Multiflow; call get_stores first to target specific ones. Only stores with Multiflow are reported on.
get_meta_suggestions
ChatGPTSuggest the figures needed to create a goal (meta) for one store and period, from the store's own history: revenue, average ticket and conversion rate, each estimated from the same period last year and from the last 4 months. Also returns how many active sellers the goal will be split among and the user's flow preference. Call it before create_meta and present the suggestions so the user can pick or adjust the revenue target. Every integerValue is already in create_meta's units (cents, or percent x100); display is the human value (BRL, or percent). A null suggestion means there is not enough history.
get_metrics_from_sellers
ChatGPTFetches seller metrics for a date range, returning data per seller and store and aggregated totals. Includes sales, revenue, customer service counts and durations, items per sale, average ticket, average item price, average customer service duration and usability, together with store-level flow. Store flow is shared by sellers in that store, not a count attributed to each seller; totals count it once per store. Measured values come from camera flow counts; Adjusted values include estimates for counting gaps caused by errors. When adjustFlow is true, use Adjusted values; otherwise, use Measured values. Each row includes storeId, storeName, sellerId, sellerName, adjustFlow, metasRevenue (revenue target), metasCompleted (achieved targets), metasFinished (finished targets) and metasRatio. Target revenue is null unless every day has a target; overlapping targets use the daily value of the longest target, and targets of equal length use the greater value. Defaults to every store the user can access; call get_stores first to target specific ones.
get_metrics_from_stores
ChatGPTFetches store metrics for a date range, returning per-store data and aggregated totals. Metrics include visitors, visitor groups, sales, revenue, number of customer service interactions, customer service duration, conversion rates, attractiveness, items per sale, average ticket value, average item price, average customer service duration, usability, revenue targets, achieved targets and finished targets. Metrics with Measured and Adjusted key suffixes provide two versions: Measured values come from actual camera flow counts, while Adjusted values include estimates for gaps when cameras could not count due to errors. When adjustFlow is true, use Adjusted values; otherwise, use Measured values. Each data entry includes storeId, storeName, metasRevenue (revenue target), metasCompleted (achieved targets), metasFinished (finished targets) and metasRatio.
get_non_conversion_reasons_classifications_available
ChatGPTLists the classifications and subclassifications a non-conversion reason (nocReason) can carry. Each main classification has its own subclassifications. Call this first to find the exact filter values for non_conversion_reasons_stats and search_non_conversion_transcriptions. These are internal ids: when presenting them to the user, translate them into readable names in the user's language (say 'Limited Initial Interest', not 'limited_initial_interest').
get_store_schedule
ChatGPTReturn the opening hours of stores: the regular weekly schedule and, for a given period, the schedule overrides (holidays, special hours). Use the weekly schedule to plan a regular staff schedule. Overrides replace the weekly hours on their date and always win over it; an override with closed=true means the store does not open that day. A weekday missing from weekly_schedule means the store is closed that weekday; has_weekly_schedule=false means the hours are unknown, not that the store is always closed. A weekday or an override date may have several entries (e.g. split hours); consider all of them, the overrides of a date together replace the weekly hours of that date. Pass dateBegin and dateEnd covering the dates in question to get their overrides; omit both to get only the weekly schedule. To answer whether a store is open now, pass today as the period and compare local_now (store local time) with that day's override, or else with the weekly hours of local_weekday (a window with closes_next_day=true also covers the early hours of the next day). The overrides may include one dated the day before dateBegin: it is returned only because it runs past midnight into dateBegin, so use it for the early hours of dateBegin, not to plan the day before. Defaults to every store the user can access; call get_stores first to target specific ones.
get_stores
ChatGPTList the stores the current user has access to, with their id, alias, area in square meters and name. Use it to resolve a store mentioned by name into the storeIds other tools expect.
market_data
ChatGPTFetches market benchmarks for one month in YYYY-MM format, including its first through last calendar day. Returns one result per segment and segment tag with benchmarks for the requested month. The tags rua and shopping identify street stores and stores located in shopping malls, respectively. Each result has segmentId, segmentName, segmentTagId, segmentTagName, and month at the top level, plus previousMonth and previousYear comparison objects. month is the requested month in YYYY-MM format. previousMonth contains growth benchmarks comparing the requested month with the immediately preceding month; previousYear compares it with the same month in the previous year. Both comparison objects include their reference month in YYYY-MM format. Revenue, flowGroup, flowIndividual, conversionGroup and conversionIndividual contain min25, median and top25. Conversion contains the requested month's benchmarks, shared by both comparisons. Values are averaged over available records within the requested month; missing values are null. Flow and conversion include both group and individual benchmarks. segmentId is the smallest marketData record ID for that segment name.
metas_infos
ChatGPTPRIORITY TOOL when the user asks about goals, targets or 'metas'. Compares actual revenue, visitors, conversion rate and UPT against the projected targets of every active goal in the period, and projects where each goal lands. Supports multi-tier goals. Answers questions like 'how are we doing against our goals this month?' or, with includeSellers, 'how is seller X performing?'. Returns one entry per goal, not per store; a goal can span several stores. Defaults to every store the user can access; call get_stores first to target specific ones.
non_conversion_reasons_stats
ChatGPTPRIORITY TOOL when the user asks why customers are not buying. Returns the distribution of non-conversion reasons (nocReasons) — count, share, lost revenue and change against the preceding period of the same length — with optional breakdowns by subclassification, by store and by seller. Answers 'why aren't customers buying?', 'which stores have the most price objections?', 'why is seller A losing sales?' and 'how much revenue did I lose because products were out of stock?'. When the user names no period, use the last 7 days. Only stores with AlterVez are reported on.
search_non_conversion_transcriptions
ChatGPTReturns the atendimentos behind non-conversions, with the seller's own recorded explanation, grouped by store and optionally by seller. Use it to read what customers actually asked for, where non_conversion_reasons_stats only counts reasons. Answers 'which products are out of stock?', 'what are customers asking for?', 'which payment methods are customers asking for?', 'which brands should I focus on?' and 'what is being considered expensive?'. At least one main classification is required; call get_non_conversion_reasons_classifications_available for the valid values. Results are capped at 100 atendimentos in total, so narrow the filters as much as possible. Only stores with AlterVez are searched.
whoami
ChatGPTReturn the id, username and email of the user the current access token was issued for. Use it when the user asks who they are signed in as.
conversion_rate_per_date
Claudecorridas_infos
Claudeget_flow_per_day
Claudeget_noc_reason_classifications_available
Claudeget_stores
Claudemetas_infos
Claudenoc_reasons_stats
Claudesearch_non_conversion_transcriptions
Claudewhoami
Claude