Skip to main content

Teaching Tofie AI to Select Correct Tags for Invoices

Whether you use tracking categories in Xero or Classes in QBO, Tofu helps you select the correct Tags for each line item in your invoices.

C
Written by Cristina Michelini

1. Understanding Tags in Tofu

  • Tags = Tracking categories (Xero) or Classes (QuickBooks Online)

  • Used to classify expenses

  • Tofu’s Tag selection logic:

    1. If the vendor exists → looks at bill history

    2. If vendor is new & no instructions → uses line item description to suggest a tag

    3. If set in Knowledge Base → follows your saved instructions


2. Teaching & Saving Tagging Rules

  • Start a conversation with Tofie Assistant

  • Clearly instruct it to select the Tag (e.g., Region) based on the billed company’s address

  • Example prompt:
    "Always select the Region tag based on the billed company’s address"

  • Provide examples:

    • Europe → EMEA

    • USA → North America

  • Important: Use the prompt title "Tagging Rules for each line item"

  • Review the generated prompt, then save it to the Knowledge Base if correct

  • Check for conflicts with existing rules before saving


3. Re-extract the Data

  • If no conflicts, re-extract the document

  • Tofie will reprocess and apply the correct tracking category


4. Confirm the Selection

  • Verify that Tofie selected the correct category/region based on the address


Cautionary Notes

  • Double-check instructions for accuracy before saving

  • Be clear and specific to avoid confusion


💡 Tips for Efficiency

  • Use consistent terminology in prompts

  • Regularly update the Knowledge Base as tagging rules change

Did this answer your question?