User keywords
Shared steps runbooks call, like signing in: make one from a runbook's steps or create it, then reuse it everywhere.
A user keyword is a set of steps your team writes once and calls from any runbook, such as User.Sign in or User.Open Store. Runbooks call it like any other keyword, passing in its arguments. When you publish a change to it, every runbook that calls it gets the change.
Make one from a runbook’s steps
Section titled “Make one from a runbook’s steps”The quickest way is to turn steps you already have into a keyword.
- Runbook›Steps
Pick the steps
Section titled “Pick the steps”Hover a step and select Make a user keyword. Pick the steps to include: they stay in order and come from one phase. Tick a step to stretch the range to it, or untick the first or last to shrink it. A FOR or IF is picked as a whole. Select Next.
- Make a user keyword›Name and arguments
Name it and choose its arguments
Section titled “Name it and choose its arguments”Give the keyword a name; it starts with User.. Then check its arguments:
- Values that come from a variable or a secret, like
${PASSWORD}, always become arguments. - Typed text can be Passed in as an argument or stay Fixed in the keyword.
- If a later step uses a value the picked steps save, the keyword returns it. A keyword can return one value.
- Values that come from a variable or a secret, like
- Make a user keyword
Make the keyword
Section titled “Make the keyword”Select Make keyword. The keyword is published, and the runbook’s draft calls it in place of the steps you picked. Dry run the change before you publish the runbook, or Undo it.
You'll see the app's confirmation, for example User.Sign in is published, and this runbook's draft calls it in place of steps 2 to 4.
Create one from scratch
Section titled “Create one from scratch”On the User keywords page, select Create keyword. Give it a name and an optional description of what it does for callers, add its arguments, then add its steps and Publish. Runbooks can only call published keywords.
Argument types
Section titled “Argument types”| Type | For |
|---|---|
| Text | Free-form text |
| Secret | Masked, and kept out of logs |
| Boolean | A true or false toggle |
| Number | A numeric value |
| Select | A fixed list of choices |
| Any | Text, a number or a list |
Change a keyword
Section titled “Change a keyword”Edit a keyword’s steps or arguments any time. Changes save as a draft and show Unpublished changes; runbooks keep calling the published version until you publish again. Check Used by to see which runbooks call it before you change its arguments.
A keyword can’t be dry run on its own. Dry run a runbook that calls it.