5 min read
System fields are fields created by Pengo that allow you to access many contact and business account data that are automatically saved by Pengo.
Pengo has many system fields, not all of which are visible when you build your flows. If you use a system field in your flow, even if it isn’t visible in the list of available fields, it will work.
{{first_name}}
{{last_name}}
{{full_name}}
{{email}}
{{phone}}
{{user_country}}
{{user_state}}
{{user_city}}
{{inbox_link}}: the link to the inbox on Pengo. {{gender}}
{{locale}}: User language. Example en_US
{{locale2}}: User language. Example en {{ig_user_name}} : The Instagram user name. {{ig_followers}}: The Instagram follower count for the user. {{ig_verified}}: Verification status for the user on Instagram. {{ig_follow_business}}: Indicates whether the user follows the business or not. {{ig_business_follow_user}}: Indicates whether the business follows the user or not. {{profile_pic}}
{{timezone}}: Timezone offset like +2
{{timezone_name}}: example: America/New_York {{user_id}} : the contact user ID on Pengo. Use this ID on the API. {{subscribed_date}} : the date when the contact was created.
{{fb_chat_link}} : The direct link to a contact’s Facebook Inbox.
{{me}}: Contains a link that lets users view and delete their data. This helps businesses to stay compliant with GDPR.
{{user_code}}
{{last_btt_title}}
{{last_interaction}}
{{last_order}}
{{last_seen}}: Last time the contact read a message.
{{last_outbound_message_at}}: the last time the business sent a message to the contact.
{{last_input}}: the last text, image, video, audio, file, or voice message sent by the user.
{{last_input_type}}: text, image, video, audio, file, reel.
{{consecutive_failed_reply}}
{{last_ref}} : the last entry point link clicked by the user.
{{user_channel}}: the primary channel of the user.
{{user_hash}}
{{user_tags}} – contains the name of all tags applied to a contact.
{{user_external_id}}: the Viber user id.
{{user_source}}: Ads, Facebook/IG comment, Direct, Imported, API, Inbound Message, Unknown …
{{assigned_admin_name}}
{{assigned_admin_email}}
{{assigned_admin_id}}
{{current_user_time}}
{{chat_history}}: return the last 50 messages between the user and the business. {{chat_history_large}}: return the last 200 messages between the user and the business. {{chat_history_details}}: like {{chat_history}} but it includes WHO sent the message. {{chat_history_details_large}}: like {{chat_history_details}} but it includes WHO sent the message.
{{user_notes}}: the notes added to the user.
{{last_user_note}}: the last note added to the user.
{{webchat}}: Contains a link that allows the user to continue a conversation from any channel in webchat.
{{webchat_parent_url}}: contains the URL of the page that the webchat is loaded.
{{account_id}}
{{account_name}}
{{account_image}}
{{api_key}} – the API key of your account.
{{last_ad}} – ID of the last Facebook/Instagram ad the user clicked before reaching your bot.
{{last_ad_headline}} – Contains the headline of the last advertisement the customer.
{{last_ad_body}} – Contains the main text of the last advertisement the customer clicked.
{{last_ctwa}} – ID of the last Click-to-WhatsApp action that opened the chat.
{{last_ad_source_url}} – Link to the ad the user clicked.
{{last_ad_source_platform}} – Platform where the user clicked the ad (Facebook or Instagram).
{{last_commented_post_text}}: This field automatically includes the text of the latest post that a contact commented on. Add this system field to your AI Agent’s prompt so the AI can understand the exact content of the post the user is referring to when writing a response.
{{last_fb_comment}}: the text of the last comment of a user.
{{total_new_tagged}} : Number of users that aren’t in your contact list that was tagged in the comment. Works only on Facebook.
{{total_tagged}} : Number of users that aren’t tagged in the comment. Works only on Facebook.
{{last_post_id}} : the post ID of the last post commented by the user.
{{last_comment_id}} : the comment ID of the user’s comment on the last post the user commented on.
{{last_story_id}}
{{page_user_name}}
{{viber_bot_username}}
{{last_call_recorded}} – Contains the link to the last call recorded.
{{last_latitude}} – only available if the user has shared their location.
{{last_longitude}} – only available if the user has shared their location.
{{last_lead_id}}: Lead ID
{{last_form_name}}: Facebook form name
{{last_form_id}}: Facebook form ID
{{last_ad}}: Facebook Ad ID
{{last_ad_name}}: Facebook Ad name
{{last_campaign_name}}: Facebook campaign name
{{last_campaign_id}}: Facebook campaign ID
{{last_adset_name}}: Facebook adset name
{{last_adset_id}}: Facebook adset ID
{{last_adgroup_id}}: Facebook adgroup ID
{{last_opportunity_id}} – contains the ID of the last opportunity updated or created.
{{booking_date}}
{{booking_link}}
{{booking_id}}
{{booking_calendar}}
{{cart_checkout_link}}
{{cart_last_item_name}}
{{cart_last_item_quantity}}
{{cart_num_items}}
{{cart_other_fees}}
{{cart_shipping_cost}}
{{cart_subtotal}}
{{cart_total}}
{{cart_products}}
{{shop_link}}
{{money_symbol}}
{{order_coupon_code}}
{{order_coupon_discount}}
{{order_date_account_timezone}}
{{order_date_timestamp}}
{{order_date_utc}}
{{order_discount}}
{{order_email}}
{{order_id}}
{{order_name}}
{{order_payment_method}}
{{order_phone}}
{{order_products}}
{{order_shipping_type}}
{{order_shipping_address1}}
{{order_shipping_address2}}
{{order_shipping_city}}
{{order_shipping_cost}}
{{order_shipping_state}}
{{order_shipping_zip}}
{{order_shipping_country}}
{{order_shipping}}
{{order_status}}
{{order_subtotal}}
{{order_taxes}}
{{order_total}}: example 1000
{{order_total_formatted}}: formatted value. Example $1,000.00
{{product_name}}: use it with the Trigger “Product Ordered” or “Product added to cart”.
{{product_quantity}}: use it with the Trigger “Product Ordered” or “Product added to cart”.
{{product_id}}: use it with the Trigger “User Asked About a Product”, “Product Ordered”, “Product Added to Cart,” or “Product Removed from Cart”.
{{last_points}} – contains the total points of the last questionnaire filed by a contact.
{{last_step}}: includes the STEP ID of the previously executed step. Works only if used in published flows.
{{current_step}}: includes the STEP ID of the current active step. Works only if used in published flows.
{{admin_name}}: includes the admin’s name that sends the message or flow from the inbox.
{{admin_team_name}}: Includes the names of all teams the admin is part of when they send a message or flow from the inbox.
{{last_error_log}}: Includes information about the last error log.
{{last_input_failure}}: includes the reason the GET USER DATA failed. Possible values are timeout, user_skipped, invalid_input_attempts.
You will not see suggestions for all these fields on the flow builder but if you use them it will work. Some features requires you to select a custom field, in this case create a custom field and transfer the System field value to your Custom field using the action “Set Custom Field“.
Images are supplier reference screenshots and may show the original branding.