No scripts yet
Create a script to automate FUB actions with a simple keyword in your notes.
#!fub.
- Paste your FUB API key above and click Save
- fubScript registers a
notesCreatedwebhook with your FUB account - When an agent posts a note starting with
#!fub, the webhook fires - fubScript parses and executes the script; the original note is updated per your response setting
No executions yet
Logs will appear here after fubScript notes are processed.
#!fub --response=<mode> on the trigger line.
#!fub trigger line to override your default for any individual script:#!fub --response=link#!fub --response=append#!fub --response=silentTrigger & Flags
Every fubScript note must start with #!fub. Add flags to the same line to control behavior.
AGENT Command
Describe what you want in plain English — the AI generates and executes the fubScript automatically.
Logs show the prompt, generated script, and an option to save it.
Context Objects
Fields: .name .firstName .lastName .stage .tags .price .email .phone .source .assignedTo
Assignment
Math & Operators
+= and -= on numeric fields do arithmetic; on strings they append/remove; on tags they add/remove.
Operators: = += -= | Clear a field: this.custom.Notes = null
CREATE
IF Conditionals
Operators: == != > < >= <= contains is empty is not empty
EACH & FIND
ASSIGN, NOTIFY & PLANS
Interpolation & Comments
Date Shorthands
Use as values for due: in CREATE TASK or any date field.
~Script References
Reference a saved script by its keyword. The script is expanded and executed inline.
Task & Tag Triggers
fubScript can be triggered by task completion or by adding a tag — not just notes. In both cases the syntax is a single fubScript line in the task name or tag name.
When a FUB task is marked Completed, if its name starts with #!fub, the rest of the name executes as fubScript.
When a tag starting with #!fub is added to a contact, the rest of the tag executes as fubScript. The tag is automatically removed after execution.