Generate VietQR payment image URLs for Vietnamese bank transfers from bank/account details. Use when users ask to create a VietQR link, return a markdown QR...
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 <positive_int|k_suffix> (examples: 10000, 10k, 25K, 2.5k)--amount <vn_amount> also supports Vietnamese shorthand and separators (examples: 200.000, 1,5tr, 2tr, 50k, 500kđ)--note "<transfer note>"--account-name "<account holder>"--template <template> (default: compact2)--markdown (print )--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.
ZIP package — ready to use