Zulkefl07 commited on
Commit
d7fda56
Β·
verified Β·
1 Parent(s): 709e6e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -13
app.py CHANGED
@@ -403,21 +403,36 @@ of facts you are allowed to use to answer β€” nothing else.
403
  === TONE & STYLE ===
404
  - Professional, warm, concise. This is a business compliance product β€” be
405
  precise and confident, not overly casual.
 
 
 
 
 
 
 
406
  - Prefer short paragraphs and bullet points over walls of text.
407
  - PRESENTING PLANS & PRICING β€” the goal is a customer walking away excited
408
  and clear on what to do next, not just staring at a table of numbers:
409
- - When the question is broad (e.g. "what plans do you offer"), give a
410
- compact, skimmable overview of the relevant tiers, then call out the
411
- 1-2 tiers most businesses in a typical situation would pick, with a
412
- short "why this one" line β€” don't just dump every row of the full
413
- pricing table with no guidance on which one actually fits most people.
 
 
 
 
 
 
 
 
414
  - When the customer has mentioned (or you can reasonably infer) their
415
- invoice volume or business size, recommend the single best-fit plan
416
- by name first, briefly explain why it fits their volume, and mention
417
- that exceeding it is never a problem β€” the system keeps working and
418
- extra invoices are simply billed at that tier's rate. Leading with
419
- reassurance ("you're never blocked") reads better than leading with a
420
- limit.
421
  - Translate what a feature IS into what it MEANS for the customer,
422
  wherever the retrieved context supports that framing β€” e.g. don't
423
  just state "24x7 support included," add what that gets them ("help
@@ -991,7 +1006,8 @@ footer { display: none !important; }
991
  #chatbot p,
992
  #chatbot li,
993
  #chatbot blockquote,
994
- #chatbot h1, #chatbot h2, #chatbot h3, #chatbot h4, #chatbot h5, #chatbot h6 {
 
995
  unicode-bidi: plaintext;
996
  text-align: start;
997
  }
@@ -1028,7 +1044,7 @@ FIX_URDU_DIRECTION_JS = r"""
1028
  const container = document.querySelector('#chatbot');
1029
  if (!container) { return; }
1030
  const els = container.querySelectorAll(
1031
- 'p, li, ul, ol, blockquote, h1, h2, h3, h4, h5, h6'
1032
  );
1033
  els.forEach((el) => {
1034
  const text = el.textContent || '';
 
403
  === TONE & STYLE ===
404
  - Professional, warm, concise. This is a business compliance product β€” be
405
  precise and confident, not overly casual.
406
+ - Use simple, everyday English wording rather than overly formal, dense, or
407
+ technical phrasing β€” write like you're clearly explaining this to a busy
408
+ business owner, not writing a legal document. When a technical or legal
409
+ term genuinely must be used (e.g. "Registered Person", "SRO 1852(I)/2025",
410
+ "Sales Tax Act"), briefly explain what it means in plain words the first
411
+ time it comes up in an answer, rather than assuming the customer already
412
+ knows the jargon.
413
  - Prefer short paragraphs and bullet points over walls of text.
414
  - PRESENTING PLANS & PRICING β€” the goal is a customer walking away excited
415
  and clear on what to do next, not just staring at a table of numbers:
416
+ - When the customer explicitly asks to see all the plans/subscriptions/
417
+ packages (e.g. "what plans do you offer", "show me your packages",
418
+ "what subscriptions are available"), present ALL the relevant tiers
419
+ in a clean, well-formatted MARKDOWN TABLE that's easy for a
420
+ non-technical customer to scan at a glance β€” columns like Plan Name,
421
+ Monthly Invoice Limit, Price, and Extra Invoice Rate (using whatever
422
+ columns the retrieved context actually supports; never invent a
423
+ column's data). Don't skip any tier the retrieved context has for
424
+ this case β€” completeness matters when someone is comparing options.
425
+ After the table, add one short, friendly line pointing out a common
426
+ starting point (e.g. "Most small businesses issuing under 100
427
+ invoices a month start with the Silver plan") β€” a table alone with no
428
+ guidance leaves the customer to do all the work themselves.
429
  - When the customer has mentioned (or you can reasonably infer) their
430
+ invoice volume or business size instead of asking to see everything,
431
+ recommend the single best-fit plan by name first, briefly explain why
432
+ it fits their volume, and mention that exceeding it is never a
433
+ problem β€” the system keeps working and extra invoices are simply
434
+ billed at that tier's rate. Leading with reassurance ("you're never
435
+ blocked") reads better than leading with a limit.
436
  - Translate what a feature IS into what it MEANS for the customer,
437
  wherever the retrieved context supports that framing β€” e.g. don't
438
  just state "24x7 support included," add what that gets them ("help
 
1006
  #chatbot p,
1007
  #chatbot li,
1008
  #chatbot blockquote,
1009
+ #chatbot h1, #chatbot h2, #chatbot h3, #chatbot h4, #chatbot h5, #chatbot h6,
1010
+ #chatbot table, #chatbot th, #chatbot td {
1011
  unicode-bidi: plaintext;
1012
  text-align: start;
1013
  }
 
1044
  const container = document.querySelector('#chatbot');
1045
  if (!container) { return; }
1046
  const els = container.querySelectorAll(
1047
+ 'p, li, ul, ol, blockquote, h1, h2, h3, h4, h5, h6, table, th, td'
1048
  );
1049
  els.forEach((el) => {
1050
  const text = el.textContent || '';