GPTWeb Token System — Summary, Conditionals, Formatters & Reference Tables

2 views
GPTWeb's token system is a powerful personalization and dynamic content engine that lets you inject visitor data, profile attributes, and computed values directly into your AI responses, emails, campaigns, and page content. Tokens are used across AI Campaigns, Agentic Workflow, Email Sending, and more — enabling truly personalized, data-driven visitor experiences at Syncari scale. Learn more about Using Tokens.
5+
Token Categories
10+
Built-in Formatters
Supported
Conditional Logic
Email, Campaigns, Content, CRM
Use Cases
Token Syntax Overview Tokens follow a double-curly-brace syntax:
  • Basic: {{token_name}}

  • With formatter: {{token_name | formatter}}

  • With conditional: ..

  • With fallback: {{token_name | default:'Fallback Value'}}
Example 1 — Conditional Token Usage: Personalize a greeting based on whether a visitor's first name is known: Hi, Welcome back!Hi, welcome to our site! This renders the visitor's capitalized first name if available, otherwise falls back to a generic greeting — no hardcoding required.
Example 2 — Formatter with Token: Display a visitor's signup date in a friendly format: You joined us on This formats a raw timestamp into something like: You joined us on January 15, 2025
Example 3 — Nested Conditional with Score: 🔥 You're a top-tier prospect!, our team will reach out shortly.Thanks for your interest!Welcome! Let us help you get started. This powers dynamic content based on AI Scoring thresholds.
All Available Tokens — Reference Table
Token Category Description Example Output
{{raw:visitor.first_name}} Visitor Profile Visitor's first name Nick
{{raw:visitor.last_name}} Visitor Profile Visitor's last name Bonfiglio
{{raw:visitor.full_name}} Visitor Profile Visitor's full name Nick Bonfiglio
{{raw:visitor.email}} Visitor Profile Visitor's email address {{visitor.email}}
{{raw:visitor.company}} Visitor Profile Visitor's company name Syncari
{{raw:visitor.title}} Visitor Profile Visitor's job title CEO
{{raw:visitor.phone}} Visitor Profile Visitor's phone number +1 555-123-4567
{{raw:visitor.city}} Visitor Profile Visitor's city San Francisco
{{raw:visitor.country}} Visitor Profile Visitor's country United States
{{raw:visitor.score}} AI Scoring Visitor's AI engagement score 87
{{raw:visitor.segment}} AI Segmentation Visitor's active segment Enterprise Champion
{{raw:visitor.persona}} Derived Personas Derived visitor persona Power User
{{raw:visitor.created_at}} System Date visitor was first seen 2025-01-15T10:30:00Z
{{raw:visitor.last_seen}} System Date of visitor's last visit 2026-03-10T14:22:00Z
{{raw:visitor.page_views}} Engagement Total page views by visitor 42
{{raw:visitor.session_count}} Engagement Total sessions by visitor 7
{{raw:visitor.dql_status}} DQL Visitor's DQL qualification status Qualified
{{raw:visitor.utm_source}} Attribution UTM source from acquisition google
{{raw:visitor.utm_campaign}} Attribution UTM campaign name spring_launch_2025
{{raw:visitor.referrer}} Attribution Referring URL https://google.com
{{raw:site.name}} Site Name of the GPTWeb site Syncari AI Web
{{site.url}} Site Base URL of the site https://syncari.gptweb.com
{{date.today}} Date/Time Today's date March 15, 2026
{{date.year}} Date/Time Current year 2026
{{date.month}} Date/Time Current month name March
{{campaign.name}} Campaign Active campaign name Q1 Nurture Flow
{{campaign.id}} Campaign Active campaign ID camp_abc123
{{email.subject}} Email Current email subject line Welcome to GPTWeb!
{{unsubscribe_link}} Email One-click unsubscribe URL https://...
{{custom.field_name}} Custom Fields Any custom profile field defined user-defined value
All Available Formatters — Reference Table
Formatter Syntax Description Input Example Output Example
capitalize {{token | capitalize}} Capitalizes the first letter nick Nick
uppercase {{token | uppercase}} Converts entire value to uppercase syncari SYNCARI
lowercase {{token | lowercase}} Converts entire value to lowercase NICK nick
truncate {{token | truncate:50}} Truncates to specified character length Long company description... Long company descripti...
default {{token | default:'Fallback'}} Renders fallback value if token is empty (empty) Fallback
date {{token | date:'MMMM D, YYYY'}} Formats a date/timestamp using format string 2025-01-15T10:30:00Z January 15, 2025
time_ago {{token | time_ago}} Renders relative time from a timestamp 2026-03-10T14:22:00Z 5 days ago
number_format {{token | number_format:2}} Formats a number with decimal places 1234.5678 1,234.57
currency {{token | currency:'USD'}} Formats a number as currency 4999 $4,999.00
replace {{token | replace:'old':'new'}} Replaces a substring within the value Hello World Hello GPTWeb
strip_html {{token | strip_html}} Strips HTML tags from a value <b>Bold</b> Bold
url_encode {{token | url_encode}} URL-encodes the token value Nick Bonfiglio Nick%20Bonfiglio
json {{token | json}} Outputs value as JSON string {key: value} {"key": "value"}
slice {{token | slice:0:3}} Returns a slice of a string or array Hello Hel
pluralize {{token | pluralize:'lead':'leads'}} Returns singular or plural based on count 1 / 2 1 lead / 2 leads
Conditional Logic Reference
Construct Syntax Description Example
if / endif {{if token}}...{{endif}} Renders content if token is truthy {{if visitor.email}}Email known{{endif}}
if / else / endif {{if token}}...{{raw:else}}...{{endif}} Renders alternate content if token is falsy {{if visitor.first_name}}Hi {{raw:visitor.first_name}}{{raw:else}}Hi {{visitor.first_name}}{{endif}}
else if {{if cond1}}...{{raw:else if cond2}}...{{endif}} Chained conditional branches {{if score>=80}}Hot{{raw:else if score>=50}}Warm{{raw:else}}Cold{{endif}}
Comparison == {{if token == 'value'}} Equality check against a string or number {{if visitor.segment == 'Enterprise'}}...{{endif}}
Comparison >= {{if token >= number}} Greater than or equal comparison {{if visitor.score >= 75}}...{{endif}}
Comparison <= {{if token <= number}} Less than or equal comparison {{if visitor.page_views <= 2}}...{{endif}}
Comparison != {{if token != 'value'}} Not equal comparison {{if visitor.dql_status != 'Qualified'}}...{{endif}}
Logical AND {{if cond1 && cond2}} Both conditions must be true {{if visitor.score >= 80 && visitor.company}}...{{endif}}
Logical OR {{if cond1 || cond2}} Either condition must be true {{if visitor.email || visitor.phone}}...{{endif}}
unless {{unless token}}...{{endunless}} Renders only if token is falsy {{unless visitor.email}}Please share your email{{endunless}}
Tokens power the intelligence across your entire GPTWeb experience — from AI Campaigns and Email Sending to Derived Personas and Conversational Intent. Combined with the AI Scoring and AI Segmentation engines, tokens make it possible to deliver hyper-personalized experiences at scale — without writing a single line of backend code. Ready to explore more? Getting Started or [](gptweb://modal/demo).
GPTWeb is the future of engagement, websites and marketing automation combined — built for the AI era, built for now.

Need more help?

Our AI assistant can answer any question instantly.

Continue This Conversation