Use the bundled script when the user wants a VietQR payment link or markdown QR preview:
python3 "{baseDir}/scripts/vietqr.py" --bank <bank> --account <account>
Optional flags:
--amount (examples: 10000, 10k, 25K, 2.5k)--amount also supports Vietnamese shorthand and separators (examples: 200.000, 1,5tr, 2tr, 50k, 500kđ)--note "" --account-name "" --template (default: compact2)--markdown (print !VietQR)--list-banks (print built-in bank aliases like vcb, mb, bidv, vietinbank)Workflow:
10k, 2.5k, 1,5tr, 2tr, or 200.000 into whole VND amounts.Keep the script layer small and predictable. Do not rely on the script to understand every human shorthand if the agent can normalize it first.
If the script exits with Invalid input: ..., return that reason clearly and ask only for the incorrect field.
共 1 个版本