Appearance
Accounts
Your Rule login can give you access to several Rule accounts. The assistant can work in any of them. These tools show which accounts you have and let you choose the one used by default.
How the account is chosen
Every tool that works in an account takes an optional account_id. On each call, the account is chosen in this order:
- The account you name in your request (
account_id). Rule refuses it if you have no access. - Your default account, set with
set-default-account. - Your account with the lowest id, if you have not set a default.
Every answer says which account was used (accountId) and how it was chosen (accountSource), so you can always check.
INFO
Your default can occasionally be reset. If the assistant starts using a different account, check with get-default-account and set your default again.
list-accounts
Lists the Rule accounts you have access to, with their id and name, and marks your default.
This tool takes no parameters.
Try asking: "Which Rule accounts do I have access to?"
get-default-account
Shows which account is used when you do not name one, and how it was chosen.
This tool takes no parameters.
Try asking: "Which Rule account are you using?"
set-default-account
Makes an account your default.
| Parameter | Type | Required | Description |
|---|---|---|---|
account_id | number | Yes | The account's id, from list-accounts. |
- You can still name another account in any single request.
Try asking: "Use my Acme Store account from now on."