Running Campaigns

Email Templates — Introduction

A complete walkthrough of creating, managing, and using phishing email templates in PhishByte — including dynamic variables, payload types, template configuration, and the AI email generator.

8 min read • Campaigns • Email Templates • AI Generator
Need help setting up your first campaign? Book a call with our team.
Book a Session
Section 1

Dynamic Email Variables

Dynamic variables allow you to personalise each phishing email at the point of delivery — automatically inserting employee-specific content such as names, job titles, and custom attributes. This makes simulations more realistic and targeted.

The following variables are available for use in your email templates:

Link & QR Code Variables
  1. {{.PhishWebsite}} — Generates a unique phishing link for the employee, campaign, and tenant. Inject into the href attribute of an HTML anchor element.
  2. {{.QRCode}} — Generates a QR code containing a unique phishing link. Inject into the src attribute of an HTML image element.
Sender Variables
  1. {{.SenderProfile-DisplayName}} — Replaced with the Sender Profile Display Name.
Target / Employee Variables
  1. {{.Target-Email}} — Target's email address.
  2. {{.Target-FName}} — Target's first name.
  3. {{.Target-LName}} — Target's last name.
  4. {{.Target-JTitle}} — Target's job title.
  5. {{.Target-Company}} — Target's company name.
  6. {{.Target-Country}} — Target's country (e.g. Australia).
  7. {{.Target-Language}} — Target's language preference display name (e.g. English).
  8. {{.Target-Supervisor}} — Target's supervisor email address.
  9. {{.Target-PNumber}} — Target's phone number.
  10. {{.Target-Custom1}} — Target's Custom Attribute #1.
Date & Time Variables
  1. {{.DateTimeNow}} — Current date and time in long form (e.g. Friday, November 3, 2024 11:00 AM).
  2. {{.DateNow}} — Current date in short form (e.g. Nov 03, 2024).
Section 2

Email Template Configurations

The template library gives you several options for managing your phishing email templates. Each template card includes the following actions:

Template Library Options
  1. View (Magnifying Glass) — Opens the Email Inbox Simulator so you can preview the email as the recipient would see it. For standard phishing, this shows the full journey including the phishing link. For conversational phishing, it simulates the AI's initial email, a sample response, and the AI's reply.
  2. Update — View and edit the back-end configuration of the template, including the description, email body, embedded images, and attachments.
  3. Duplicate — Creates a copy of the template so you can edit it without modifying the original.
  4. Delete Template — Removes the template. If you delete a default template, the original version will reappear in the library — use this option to reset a template to its default state.
Section 3

Template Setup — Standard Phish

When creating or updating a Standard Phish template, the following fields are available:

Template Fields
  1. Template Name — The name given to the email template.
  2. Description — A brief description of what the template is doing.
  3. Email Type — Choose between Standard Phish or Conversation Phish.
  4. Payload Type — Determines the type of phishing attack. Your selection affects what is available in the Template Correlation section.
    • Phishing Website — Link to a phishing website.
    • Phishing Attachment — Attachment included in the email.
    • Information Request — Reply-to style attack.
    • Callback Request — Voice phishing style attack.
  5. Email Subject — The subject line of the phishing email.
  6. Email Body — The HTML body of the email.
  7. Insert Dynamic Placeholder — Place your cursor in the email body, then select a variable from the dropdown to insert it at that position. At send time, the system pulls the variable from the target employee list.
  8. Embed Images or Attach Files — Upload images or attachments to reference within the email body.
    • Image — Saved to a cloud-storage location with public read rights. You can then embed the URL into the email body.
    • Thumbnail — Displayed as the email thumbnail in your phishing library.
    • Attachments — Automatically included in the phishing email. Only specific Word, Excel, and PowerPoint files are supported.
  9. Email Metadata — Data that helps identify the email in the library when searching or filtering.
  10. Data Required — Pre-requisite target information needed to deliver the template (e.g. if the email references the target's first name, First Name must be listed here).
  11. Tags — Custom tags used to identify who the email may be applicable to.
  12. Email Difficulty — How difficult it will be for a target to spot the phish.
    • Easy — Average click rate of 0% to 19%.
    • Medium — Average click rate of 20% to 29%.
    • High — Average click rate of 30% or higher.
  13. Service Location — Geographic location.
  14. Template Correlation — The Phishing Website and Sender Profile associated with this template. When selected in the Campaign Interactive Wizard or Quick Setup, the correlated sender and website templates are also selected automatically.
  15. Save Template — Saves all changes to the template.
PhishByte — Standard Phish template setup
Section 4

Template Setup — Conversational Phish

Conversational Phish templates use AI to simulate a back-and-forth email exchange with the target employee. The following fields are available when creating or updating a Conversational Phish template:

PhishByte — Conversational Phish template setup
Template Fields
  1. Template Name — The name given to the email template.
  2. Description — A brief description of what the template is doing.
  3. Email Type — Choose between Standard Phish or Conversation Phish.
  4. Payload Type — Determines the type of phishing attack (same options as Standard Phish above).
  5. Email Scenario — Select from a predetermined scenario. This sets the agenda for the AI during the conversational phishing attempt.
  6. AI Persona — Choose which department the AI is from. The AI will lean into this persona throughout the conversation.
  7. AI Persona Name — Hardcodes a name to the AI persona. If left as random, the AI will choose its own name from a list of common names.
  8. AI Tone — Determines the tone in which the AI will communicate with the recipient.
  9. Generate Example Email — Generates a sample email based on the settings specified. Note: this is a preview only and is not the actual email that will be sent.
  10. Email Metadata, Data Required, Tags, Email Difficulty — Same as Standard Phish above.
  11. Save Template — Saves all changes to the template.
Section 5

Embedding Phishing Payloads

Every phishing email needs to lead to a next action. Depending on the payload type selected, you will need to embed the appropriate element into your email template before sending.

PhishByte — Embedding phishing payloads
Phishing Link
  1. Ensure the variable {{.PhishWebsite}} is embedded within a clickable hyperlink or button in the email body.
  2. At the time of sending, this variable is replaced with the URL of the phishing website selected in the campaign.
  3. See the HTML view below for an example of how to embed the link correctly.
PhishByte — Phishing link HTML view
💡
The code view below shows how {{.PhishWebsite}} should be embedded inside an anchor element's href attribute.
PhishByte — Phishing link code view
Phishing Attachment
  1. Attach the necessary payload file to your email template.
  2. It is recommended to use the PhishByte provided Word, Excel, or PowerPoint documents as these have been specially designed to include a tracking pixel.
  3. Only specific file types are supported. See the Attachment Tracking article for details.
PhishByte — Information Request and Callback Request payload types
Information Request & Callback Request
  1. Both of these payload types are only available when the Conversational Phish email type is selected.
  2. No placeholder needs to be manually injected — this is handled automatically by the platform.
⚠️
Ensure the correct pre-requisite target information is listed in the Data Required field for whichever payload type you are using. Missing data may prevent the email from being delivered correctly.
Section 6

AI Email Generator

PhishByte's AI Email Generator lets you create realistic simulated phishing emails from a simple prompt — no manual HTML required. The following options are available:

Generator Options
  1. Description (AI Prompt) — Describe the scenario, context, or theme you want the AI to generate. The more specific you are, the better the output. Maximum 500 characters.
  2. Example Prompts — Pre-written example prompts are available to help you understand how to craft an effective AI prompt.
  3. Advanced Options:
    • Reference Image — Upload a screenshot or snippet of a reference email to guide the AI's formatting. Useful if you want to clone the look and feel of a specific email.
    • Company Logo — Embed a company logo in the generated email to add a layer of personalisation.
💡
When an email is generated by AI, it will automatically update the following fields in the template: Template Name (only if empty), Template Description, Email Subject, Email Body, and Data Required.
PhishByte — AI Email Generator

Need help with your first campaign?

Book a call with our team and we'll walk you through campaign setup, template selection, and best practices for your first simulation.

PhishByte
Free Risk Assessment