Skip to content

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:

  1. The account you name in your request (account_id). Rule refuses it if you have no access.
  2. Your default account, set with set-default-account.
  3. 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.

ParameterTypeRequiredDescription
account_idnumberYesThe 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."