apply_change_set
ChatGPTUse only after the user approves a preview in this conversation. Applies exactly that change once and returns what changed; changes nothing if the data changed or it expired.
approve_change_set
ChatGPTUse only after the user approves on the preview card; the card calls it, never the assistant. Applies the menu price change or new menu items shown on the card once, with the card's approval token. Returns what changed.
calculate_profit
ChatGPTUse when the user asks how much profit they made or how it was calculated. Returns step-by-step profit from sales and expenses. For profit from the accounts use get_balance_sheet_or_profit_and_loss.
cancel_change_set
ChatGPTUse when the user decides against a preview. Discards that unsaved preview; nothing in iFusion changes. Returns its status.
check_data_completeness
ChatGPTUse when the user asks if reports can be trusted or what data is missing. Returns missing recipes and costs, stock problems and which reports are reliable.
compare_day_with_usual_weekday
ChatGPTUse when the user asks if a day's sales are normal for that weekday. Returns the day's totals against the median of its last 8 same weekdays, with the range and dates used; it has no item figures.
compare_expenses
ChatGPTUse when the user asks which expenses went up, down or are new. Returns the largest expenses with their change against an earlier period.
compare_ingredient_use_with_recipes
ChatGPTUse when the user asks if ingredients are used faster than sales predict or if recipes are accurate. Returns expected vs actual use per ingredient.
compare_linked_outlets
ChatGPTUse to compare or total outlets linked in Outlet Reports. Returns per outlet sales, profit, stock, ratings, customers and the network total; with report, each outlet's report and the total.
compare_own_outlets
ChatGPTUse to compare this organization's outlets. Returns per outlet sales, average bill, food cost, discount, wastage and margin, with the median. Linked outlets: compare_linked_outlets.
compare_sales_periods
ChatGPTUse to compare sales between up to 4 periods or restaurants, like this week vs last week. Returns sales, bills, average bill, discounts and profit for each.
confirm_booking
ChatGPTUse when the customer said yes to the summary from prepare_booking, never before. Sends the request once; the place confirms it. Returns the reference and status; refuses if the time, fee or price changed.
estimate_price_or_cost_change
ChatGPTUse for what-if questions: a price change, an ingredient cost change, or reaching a profit target. Returns estimated margin and profit effects. Changes nothing.
explain_sales_change
ChatGPTUse when the user asks why sales or profit changed between two periods. Returns the change split into bills, bill size, items, categories, prices, costs and weekdays.
find_accounts
ChatGPTUse to find an account or account group in the chart of accounts by name, code or path. Returns each match's id, code, full path, depth and whether it is a group or a postable ledger.
find_billing_anomalies
ChatGPTUse when the user asks about suspicious bills or accounting entries. Returns unusual voids, refunds, discounts, duplicate or backdated entries and unbalanced vouchers, with examples.
find_events
ChatGPTUse when a customer asks about events, shows or things to do, by words, area, date or price. Returns upcoming public iFusion events with Nepal times, venue, price range, ticket state and a link.
find_expense_matches
ChatGPTUse when the user wants to record an expense and its account or payment method is unclear. Returns the outlet's accounting mode and matching accounts and payment methods with ids.
find_matches
ChatGPTUse when a name for a preview is unclear. kind: expense (account, paidFrom), purchase_bill (supplier, items), stock_item (items with unit, location) or payment_account (from, to). Returns ids, units and candidates for that preview.
find_payment_accounts
ChatGPTUse when the user wants to move money between payment methods (cash, bank, wallet) and a name is unclear. Returns the methods money can leave and arrive in, with ids.
find_places
ChatGPTUse when a customer asks where to eat or drink in Nepal, by area, budget, food, diet or open now. Returns up to 5 places listed on iFusion Discover with matching dishes and prices, open status, reasons and what they miss.
find_purchase_bill_matches
ChatGPTUse when the user wants to enter a supplier invoice, to find its supplier, items and units at once. Returns ids, units with their size, the latest purchase rate, and candidates where a name is not certain.
find_stock_item_matches
ChatGPTUse when the user wants to record a stock count or spoiled or wasted stock and an ingredient, unit or location is unclear. Returns ids, units, the user's locations and recorded stock at each.
forecast_ingredient_stock_out
ChatGPTUse when the user asks what will run out or what to buy. Returns days of stock left, quantity to buy and estimated cost per ingredient.
forecast_sales_and_cash
ChatGPTUse when the user asks how much they will sell or how much cash they will need in the coming days. Returns expected daily sales, money in, cash needed and confidence.
get_account_ledger
ChatGPTUse for one account's ledger or statement. Returns opening balance, debits, credits, closing balance and recent entries.
get_account_tree
ChatGPTUse for an account group with every account under it at any depth, or the whole chart of accounts. Returns each account's path, depth and balances, with group totals from their ledgers only.
get_accounting_cash_flow
ChatGPTUse for a cash flow statement from the accounting books. Returns opening cash and bank, money in and out by activity, and closing cash.
get_balance_sheet_or_profit_and_loss
ChatGPTUse for a balance sheet or a profit and loss statement from the accounting books. Returns assets, liabilities and equity, or income, expenses and net profit.
get_bill_details
ChatGPTUse for one bill by its number. Returns its items, discounts, VAT, payments, customer, table and who added or removed items.
get_central_kitchen_production
ChatGPTUse when the user asks what the kitchen produced or packed. Returns quantity produced per item, batches, who made it and packaging.
get_customer_feedback
ChatGPTUse when the user asks what customers say, the rating, or about complaints. Returns ratings, question scores and recent comments, without contacts.
get_customer_profile
ChatGPTUse for one customer by name or phone. Returns their visits, spend, last visit and favourite items over 12 months.
get_customer_segments
ChatGPTUse for new vs returning customers, customers visiting less, what top customers buy, or whether loyalty members (customers linked to bills) spend more than walk-ins. Returns segment counts, slowing customers, suggested offers, and members against walk-in bills and by visit count.
get_detailed_dataset
ChatGPTUse for a full list or row-by-row breakdown: items sold, daily or hourly sales, expenses, customers, or the whole menu with price and food cost (menu_items). Returns totals, cell counts and a preview.
get_event_sales
ChatGPTUse when the user asks how an event's tickets are selling or how many guests checked in. Returns per event and ticket type tickets sold, revenue, remaining and check-ins, and paid sales per day; without an event, upcoming and recent events.
get_expense_details
ChatGPTUse when the user asks about one expense or whether it saved right. Returns it in full (tax, payments, who saved it, Edit Log); with verify or a changeSetId, each saved figure against the approved one.
get_expenses
ChatGPTUse when the user asks how much was spent, on what or with which vendor. Returns total, paid, due, breakdowns by vendor, type and payment method, and the largest expenses.
get_financial_statement
ChatGPTUse for the accounting books: profit_and_loss, balance_sheet, trial_balance (account balances), account_tree (a group and every account under it) or account_ledger (one account's entries). Returns that statement.
get_ingredient_price_impact
ChatGPTUse when the user asks why food cost rose or which dishes ingredient prices hurt. Returns ingredient price changes and their effect on each item's cost and profit.
get_items_bought_together
ChatGPTUse when the user asks what customers buy with an item, which items sell together, or what to pair or bundle. Returns, from every sales bill of the period, the items on the same bills with counts, shares and how much more often than usual.
get_kitchen_order_log
ChatGPTUse when the user asks what staff ordered or removed after sending orders to the kitchen (KOT). Returns orders and removals by staff, item, table or waiter.
get_kitchen_speed
ChatGPTUse when the user asks how fast the kitchen is or which dishes or cooks are slow. Returns order-to-serve times, late share, slowest items and each cook's speed.
get_my_bookings_and_orders
ChatGPTUse when a signed-in customer asks about their bookings, orders or event tickets. Returns their own, newest first, with live status (unknown when a place cannot be reached), Nepal times and links.
get_payment_settlements
ChatGPTUse for pending reconciliations, settlements between payment methods, or failed QR payments. Returns transfers with status and fees, and failed or unpaid QR payments.
get_payroll
ChatGPTUse for salary cost or what staff are owed for a month. Returns salary, overtime, deductions, amount to pay and paid status per person.
get_place_details
ChatGPTUse when a customer asks about one place from find_places or by its exact name. Returns its menu with prices and stock, opening hours, closures, address and tags; unknown when the restaurant has not shared them.
get_promotion_results
ChatGPTUse when the user asks if a promo code or a Win Back offer (an offer to customers who stopped visiting) worked. Returns per campaign the bills, revenue, discount given, profit after recipe cost and return on cost.
get_purchase_bills
ChatGPTUse when the user asks what was bought from vendors (shops), at what rate, what is due on purchases, or which vendor is cheaper for an ingredient. Returns purchase totals by vendor and item, the largest bills, and with compareVendors each vendor's average rate for the same stock item.
get_receivables_and_payables
ChatGPTUse when the user asks who owes the business or whom it owes. Returns customer and vendor dues with amounts and age.
get_recipe
ChatGPTUse when the user asks what goes into a dish, what a portion costs, or which dishes use an ingredient. Returns ingredients, quantities and costs per portion. For several dishes or ingredients, pass them all in items or ingredients in one call.
get_restaurant_profile
ChatGPTUse for questions about the restaurant itself: address, contact, hours, policies, services. Returns its description, location, contact and the owner's notes.
get_sales_report
ChatGPTUse for one restaurant's sales in a period: totals, payment methods, top items, categories, hours, days, discounts, cancellations. Returns the requested sections.
get_sales_trend
ChatGPTUse when the user asks if sales or average bill are rising or falling, or which items sold more or less than usual. Returns figures per window with direction and unusual items.
get_staff_attendance
ChatGPTUse when the user asks who is absent, late or on leave, or for attendance over a period. Returns status, check-in times, lateness, hours and overtime per person.
get_staff_billing_activity
ChatGPTUse for staff performance or discounts, voids and cancellations by staff. Returns per staff sales, discounts, voids and cancelled items, flagging outliers.
get_stock_levels
ChatGPTUse when the user asks how much stock there is, what is low, or what stock is worth. Returns quantity, value, reorder level and last count date per ingredient.
get_stock_movements
ChatGPTUse when the user asks where ingredients went: usage, wastage, adjustments, transfers. Returns movements per ingredient with value and wastage reasons.
get_trial_balance
ChatGPTUse for an account's balance (bank, cash, vendor) or a trial balance. Returns closing balances per account and group.
get_vat_summary
ChatGPTUse when the user asks about VAT payable or collected, or TDS on purchases. Returns VAT on sales and purchases, net VAT payable and TDS withheld.
investigate_stock_count_difference
ChatGPTUse when a physical count differs from iFusion's stock. Returns movements since the last count and the likely causes to check. Does not save the count.
list_central_kitchen_dispatches
ChatGPTUse for stock a central kitchen sent to outlets, or what outlets owe for it. Returns dispatch values, status and dues per outlet and item.
list_customers_to_win_back
ChatGPTUse when the user asks which customers to win back. Returns overdue regulars and lapsed high spenders with reasons. Contacts nobody.
list_offers
ChatGPTUse to see existing offers before changing or judging them. Returns discount, buy-and-get and visit offers and promo codes with their ids, status and dates.
list_restaurants
ChatGPTUse when the user names an outlet or asks about several. Returns each restaurant's id and name (other tools accept either) and the default one.
list_shift_sessions
ChatGPTUse for past shifts (sessions): who opened or closed them and whether cash was short or over. Returns each session's sales, expected and counted cash, and the difference.
list_stock_transfers
ChatGPTUse for stock moved between stores or kitchens. Returns each transfer's items, route, status and rejection reason.
list_table_bookings
ChatGPTUse for table bookings, no-shows or advance orders. Returns upcoming or past bookings and scheduled orders with status and amount.
prepare_booking
ChatGPTUse when a signed-in customer picked a booking time from get_place_details. Returns a request summary to show them and a confirmation token; nothing is sent yet. Not for a booking fee or paid package.
preview_account_change
ChatGPTUse when the user asks to create an account or account group, rename one, or turn one off (advanced accounting). Returns the change, the balance and last entry for turning off, and what blocks it. Apply with apply_change_set once approved.
preview_booking
ChatGPTUse when the user asks to book a table, change a booking or confirm, complete or cancel one (no-show: cancel with that reason). Returns the change, free times and what blocks it. A phone or email is stored, never returned. Apply with apply_change_set once approved.
preview_customer_or_supplier
ChatGPTUse to add a customer or supplier (a shop or vendor is a supplier, not an outlet), edit one's name, phone, address, email or tax number, or stop using one. Returns the change, duplicates, dues and blockers. A phone is stored, never returned. Apply with apply_change_set once approved.
preview_customer_payment
ChatGPTUse when the user says a customer paid against their credit. Returns the bills it settles (oldest first, or those named), commission and what stays due; never more than is owed. Apply with apply_change_set once approved.
preview_expense_entry
ChatGPTUse when the user asks to record an expense (electricity, rent, repairs). Returns its amounts, tax, payments, what stays owed, warnings and what the user must choose or confirm. Apply with apply_change_set once approved. Nothing is saved.
preview_journal_voucher
ChatGPTUse when the user asks for a journal voucher or journal entry (advanced accounting). Returns each line's account, debit and credit, the totals, warnings and what the user must choose or confirm. Apply with apply_change_set once approved. Nothing is saved.
preview_new_outlet
ChatGPTUse when the user asks to create a new outlet. Returns the outlet to confirm, with settings copied from an existing outlet, and what is still missing. Nothing is created until the user confirms it in iFusion, through the link apply_change_set gives.
preview_offer
ChatGPTUse when the user asks to create an offer: kind discount (happy hour, loyalty reward) or buy_get (buy 2, get 1 free). Returns the offer and prices to confirm.
preview_offer_status
ChatGPTUse when the user asks to turn an existing offer or promo code on or off, or extend when it ends; take the id from list_offers. Returns the change to confirm.
preview_payment_method
ChatGPTUse when the user asks to add a payment method (cash, bank, wallet or Fonepay) or turn one on or off. Returns the change, the balance and last use for turning off, and what blocks it. Never takes Fonepay merchant details. Apply with apply_change_set once approved.
preview_payment_transfer
ChatGPTUse when the user asks to move money from one payment method to another (cash to bank). Returns the transfer, whether it moves on confirmation or needs someone to accept it, warnings and what the user must choose or confirm. Apply with apply_change_set once approved. Nothing is moved.
preview_purchase_bill
ChatGPTUse when the user asks to enter a supplier invoice as a purchase bill. Returns lines, new suppliers or ingredients, totals against the invoice, warnings and what the user must choose or acknowledge. Apply with apply_change_set once approved. Nothing is saved.
preview_purchase_bill_choices
ChatGPTUse only after the user changes a choice on the purchase bill card; the card calls it, never the assistant. Prepares the bill again with that choice, replacing the earlier preview. Returns the new preview; nothing is saved.
preview_staff_account
ChatGPTUse when the user asks to create a staff account such as a cashier with an existing role. Returns the account to confirm; the password is shown only to the user. Created only when the user confirms it in iFusion, through the link apply_change_set gives.
preview_stock_adjustment
ChatGPTUse when the user reports a physical count or spoiled or wasted stock. Returns each line's recorded stock, the count or removal, the difference, the balance after, warnings and what the user must choose or confirm. Apply with apply_change_set once approved. Nothing is changed.
reconcile_sales_to_cash
ChatGPTUse when the user asks where sales money went or why cash is lower than sales. Returns sales split into credit and money received by method, expenses paid and the cash drawer count.
scan_business_issues
ChatGPTUse for open questions on how the business is doing or where money is lost. Returns issues across sales, costs, stock, staff and customers, ranked by money involved.
search_accounting_vouchers
ChatGPTUse to find journal, payment, receipt, sales or purchase vouchers in the accounting day book; pass all for every voucher of a period (an audit). Returns matching vouchers with their debit and credit lines.
search_bills
ChatGPTUse to find bills by number, customer, table, state (voided, credit, discounted…), payment method or period. Returns totals and up to 20 matching bills.
show_report_visuals
ChatGPTUse after a data tool when a visual helps. Returns that tool's result as cards, charts and tables, using its analysisId.