fubScript
Scripting automation for Follow Up Boss
Sign In
Register
Natural Language Prompt
Generated fubScript
Script
Execution Results
fubScript
Saved Scripts
Reference any script with @keyword in a FUB note starting with #!fub

No scripts yet

Create a script to automate FUB actions with a simple keyword in your notes.

AI Assistant
Generating…
Quick Reference
this.stage = "Active Buyer"
this.tags += "VIP"
this.tags -= "Cold"
this.custom.Counter += 1
CREATE TASK "Call" due:+1d
IF this.price > 500000 … END
NOTIFY me "Done!"
AGENT "describe what to do"
Follow Up Boss API Key
Not connected
Find it in Follow Up Boss → Admin → API. Saving this key registers a webhook on your FUB account that listens for notes starting with #!fub.
How it works
  1. Paste your FUB API key above and click Save
  2. fubScript registers a notesCreated webhook with your FUB account
  3. When an agent posts a note starting with #!fub, the webhook fires
  4. fubScript parses and executes the script; the original note is updated per your response setting
Execution Logs

No executions yet

Logs will appear here after fubScript notes are processed.

Settings
Default FUB Note Response
Controls how fubScript updates the triggering note after execution. Override per-script with #!fub --response=<mode> on the trigger line.
Saved
Per-Script Override
Add a flag to the #!fub trigger line to override your default for any individual script:
#!fub --response=link
#!fub --response=append
#!fub --response=silent
Task & Tag Behavior
fubScript Reference
v1

Trigger & Flags

Every fubScript note must start with #!fub. Add flags to the same line to control behavior.

#!fub #!fub --response=link // default #!fub --response=append #!fub --response=silent

AGENT Command

Describe what you want in plain English — the AI generates and executes the fubScript automatically.

#!fub AGENT "Set this person up as an active buyer, assign to Jane, and start the 90-day nurture plan"

Logs show the prompt, generated script, and an option to save it.

Context Objects

this // the contact (person) me // the note author this.agent // assigned agent this.lender // assigned lender this.deals // array of deals this.tasks // array of tasks

Fields: .name .firstName .lastName .stage .tags .price .email .phone .source .assignedTo

Assignment

this.stage = "Active Buyer" this.price = 425000 this.tags += "VIP" this.tags -= "Cold" this.custom.Counter += 1 this.custom.Notes = "Called"

Math & Operators

+= and -= on numeric fields do arithmetic; on strings they append/remove; on tags they add/remove.

// Numeric increment / decrement this.price += 10000 this.price -= 5000 this.custom.Score += 1 this.custom.Counter -= 1 // String append this.custom.Notes += " — called" // Conditional math IF this.custom.Score < 50 this.custom.Score += 10 END

Operators: =  +=  -=  |  Clear a field: this.custom.Notes = null

CREATE

CREATE TASK "Follow up" due:+3d assignedTo:me CREATE NOTE "Called {{this.firstName}}" CREATE APPOINTMENT "Showing" date:+7d CREATE DEAL "123 Main" stage: "Listing Appointment" pipeline: "Sellers" price: 450000

IF Conditionals

IF this.stage == "New Lead" this.stage = "Prospect" END IF this.price > 500000 ASSIGN AGENT "Senior Team" to this END IF this.custom.Score is empty this.custom.Score = 0 END

Operators: == != > < >= <= contains is empty is not empty

EACH & FIND

EACH deal IN this.deals CREATE NOTE "Deal: {{deal.name}}" END FIND people WHERE stage == "Hot Prospect" person.tags += "Priority" END

ASSIGN, NOTIFY & PLANS

ASSIGN AGENT "Jane Smith" to this ASSIGN LENDER "Mike at Bank" to this NOTIFY this.agent "Re-engaged!" NOTIFY me "Script done" START PLAN "90 Day Nurture" on this STOP PLAN "Old Drip" on this START AUTOMATION "New Buyer" on this

Interpolation & Comments

// This is a comment CREATE NOTE "Hi {{this.firstName}}, assigned to {{this.agent.name}} stage: {{this.stage}}" NOTIFY me "{{this.name}} has {{this.deals.length}} deals"

Date Shorthands

today tomorrow +1d +3d +1w +2w +1m next monday next friday "2026-06-15"

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.

#!fub ~buyer-setup // runs your saved "buyer-setup" script this.tags += "Processed" // then continues with inline statements

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.

Task Trigger

When a FUB task is marked Completed, if its name starts with #!fub, the rest of the name executes as fubScript.

// Task name examples: #!fub ~buyer-setup #!fub this.stage="Closed" #!fub --response=silent ~set-closed
Tag Trigger

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.

// Tag name examples: #!fub ~buyer-setup #!fub this.stage="Active Buyer" #!fub --response=silent ~qualify