Skip to navigation

The Components feature allows you to build modular, reusable elements such as headers and footers.

By creating these components once, you can easily add them into any email you create, saving time and effort.

How to create a component (except PDF)

1From the left navigation menu, locate Components.
2Click ‘Components’ and it opens up the Components page.
3Click ‘Create’. You will see a popup as shown below
4Give a unique name for your component and choose a component type. In this example, I am creating a Header component called ‘On-Boarding’
5

We support 6 different type of components now.

  • Header
  • Footer
  • Banner
  • Socials (Any social media icons like Twitter, LinkedIn, FB etc)
  • Paragraph
  • PDF
6Once you click ‘Submit’, it opens the Email editor options. You can choose either ‘Stripo’ or ‘HTML Editor’.
7To create a Header, you can drag & drop Image block into the editor and brand logo.
8The header will look as shown below.
9Click ‘Save’ to create a test version of the component or click ‘Go live’ to create a live version.
10Once a component is successfully created, you can access it in Components page.

How to use a Header Component in Email template

For example, to add a Header in email editor, you need to follow the below steps.

1Drag and drop a structure into the email editor. Since its Header, make sure the block is at the top of the editor.
2Drag and drop a text block into the email editor
3In the text block, copy the component you have created from the Components section below the placeholders.
4Paste the component in the text block you have added as shown below.
5You can click Preview to see how the Header looks.
6Similarly you can add any components like Footer, Socials, Banner, Paragraphs etc.
7You can also use our Handlebars to add components based on any condition. For example, if you want to add a Header based on a brand name (as every brand will have its own logo), then you can add a condition to check brand name and add Header based on that.
8In the below example, if the brand equals Myntra, it will add the Header , ‘On-Boarding’ otherwise it will add the default Fyno Header.

How to create a PDF component

The Typst Editor is the recommended option for creating new PDF components because it creates PDFs faster. Choose the HTML Editor only if you already have an existing HTML template that you want to reuse.
1Click Components to open the Components page.
2

Click Create. A pop-up appears as shown below.

3Enter a unique name for your component and select PDF as the component type.
4

We support six different component types:

  • Header
  • Footer
  • Banner
  • Socials (social media icons such as Twitter, LinkedIn, Facebook, etc.)
  • Paragraph
  • PDF
5

Click Submit, then choose one of the following editors:

  • Typst Editor (Recommended) – Write your PDF in Typst with JSON placeholders and uploaded image assets.
  • No-Code PDF Editor – Create and format your PDF using the visual editor without writing HTML.
  • HTML Editor – Use this option only if you already have an existing HTML template that you want to reuse.
6Build your PDF in the editor you chose. Each editor is explained in the tabs below.

Typst is a simple markup language for creating documents. You write plain text with short commands for headings, tables, images, and styling, and Typst turns it into a PDF. It creates PDFs faster than the other editors, which is why it is the recommended option.

In the Typst Editor, you write the Typst code on one side and see the PDF in a live preview on the other. You can add dynamic data through placeholders and use your own images.

The example below picks the Typst Editor, writes a simple order invoice, and saves it. The preview fills in as each line is added.

Create a PDF with the Typst Editor

Editor layout

The editor has three parts:

  • Left panel: Settings, Variables, Assets, Outline, and Errors. Click << to collapse it.
  • Code editor: where you write your Typst code.
  • Preview: shows the PDF as it will look, and updates as you type.

Typst Editor layout

Click the icons on the left to move between the panels. The example below sets a password in Settings, then opens Variables, Assets, Outline, and Errors.

Typst Editor left panel

Starter code

Every new Typst PDF opens with a small starter template:

// Placeholders are available as JSON: data.at("key")
#let data = json("data.json")
// Uploaded assets are referenced by their file name: image("assets/logo.png")
#set page(paper: "a4", margin: 2cm)
#set text(size: 10pt)
= Hello #data.at("name", default: "there")
LineWhat it does
#let data = json("data.json")Loads your placeholder values so you can use them in the PDF. Keep this line.
#set page(paper: "a4", margin: 2cm)Sets the page size and margins.
#set text(size: 10pt)Sets the default text size.
= Hello #data.at("name", default: "there")Adds a heading. It shows the value of name, or “there” if no value is sent.

Settings

Click the gear icon in the left panel to open Settings.

Settings

FieldDescription
File NameThe name of the PDF file.
Protect with PasswordSelect this to lock the PDF with a password.
PasswordThe password needed to open the PDF. This field appears when Protect with Password is selected.

The page size and margins are set in your Typst code, not in Settings.

Variables

Click the { } icon in the left panel to open Variables. Use the Search box to find a variable quickly.

Placeholders are replaced with the dynamic data sent in the data payload.

Placeholders

  1. Next to Placeholders, click +, or expand the section and click + ADD.
  2. Use the placeholder in your code with data.at("key").
Hello #data.at("name")

To show a fallback value when no data is sent, add a default:

Hello #data.at("name", default: "there")

System Variables are values that Fyno already has. They are grouped as Digest, User Properties, Subscription, and Verify. Expand a group to see the variables in it.

System Variables

Assets

Click the image icon in the left panel to open Assets. This is where you upload images such as your logo.

Assets

  1. Click Upload assets or the upload icon next to Assets.
  2. Choose your image file.
  3. Use the image in your code with its file name:
#image("assets/logo.png")

Outline

Click the outline icon in the left panel to open Outline. It lists the main parts of your code, such as variables and headings, with their line numbers. Use Filter outline to narrow the list.

Outline

Errors

Click the error icon in the left panel to open Errors. If something in your code cannot be compiled, the problem is listed here. Click Fix with AI to let Fyno AI correct the code for you. When everything is fine, you see No errors on compilation.

Errors

Formatting toolbar

The toolbar above the code editor adds common Typst formatting for you, so you do not have to type it by hand. It includes undo and redo, bold, italic, underline, headings, bulleted and numbered lists, math, code, links, and comments.

Generate with AI

Click Generate with AI at the bottom of the code editor to let Fyno AI write or change the Typst code for you.

Generate with AI button

Three options appear. Click the one you need.

Generate with AI

Create Typst with AI opens Create with Fyno AI. Enter what you need in Tell us your requirement and click Create.

Create with Fyno AI

The example below uses Create Typst with AI to build the order invoice from a short description.

Create Typst with AI

Convert HTML to Typst lets you paste your HTML code and click Convert. Fyno AI turns it into Typst.

Convert HTML to Typst

Edit Typst with AI opens Edit with Fyno AI. Describe the changes you want to make and click Edit PDF.

Edit with Fyno AI

Preview

The preview on the right shows the number of pages and the PDF itself. Use the zoom list to change the preview size. Choose Fit, or a value from 25% to 200%.

Preview controls

Click the fullscreen icon to Open the fullscreen preview in a new window.

Open the fullscreen preview in a new window

Click the download icon to Save and Download PDF.

Save and Download PDF

Click Switch Editor to go back and choose a different editor.

Switch Editor

Switching the editor removes your current work. Fyno shows All your changes will be lost and asks you to confirm. Click SWITCH to continue, or CANCEL to stay in the Typst Editor.

Once your PDF is ready:

1Click Save to create a test version of the component or Go Live to publish the live version.
2

Once the PDF component is created successfully, it appears on the Components page and can be reused in Email, WhatsApp, and SMS templates.

How to use a PDF Component in Email template

For example, to add a PDF component in email editor, you need to follow the below steps.

1Click the attachment icon which will show the options as shown below
2Click ‘Select from component’ option.
3Select a pdf component from the dropdown.You can add more pdf files by clicking ‘Add files’.
4You can override the filename by selecting the checkbox. Enter a filename manually or add a placeholder.
5Once you have added all the attachments, you will see it as shown below in Email editor.

How to use a PDF Component in WhatsApp template

You can use a PDF Component in WhatsApp template in 2 ways

  • as a Document file in the Header
  • as part of the website CTA button

How to use a PDF Component as Header in WhatsApp template

  • From left nav, go to a WhatsApp template (Templates -> Fyno) .
  • Copy the component you want to add from the Components section in the navigation.
  • Paste the value in the Header textbox. It will be added as {{Component '<Component_name>'}}
  • The added component will look as shown below.

How to use a PDF Component as part of website CTA button

Things to be done in WhatsApp External Template

  • In the external template, make sure to add a website button
  • Enable Dynamic URL toggle.
  • Enable Track URL check box.

Things to be done in Fyno Template

  • From left nav, go to a WhatsApp template (Templates -> Fyno) .
  • Copy the component you want to add from the Components section in the navigation.
  • Paste the value in the button textbox. It will be added as {{Component '<Component_name>'}}
  • The added component will look as shown below.

How to use a PDF Component in SMS template

  • From left nav, go to a WhatsApp template (Templates -> Fyno) .
  • Copy the component you want to add from the Components section in the navigation.
  • Paste the value in any of the placeholders. It will be added as {{Component '<Component_name>'}} as shown below.
  • Fyno will automatically shorten the URL of the PDF component added and send it in SMS.

How to copy components to another workspace

Reusable components can also be copied between workspaces that you own.

Prerequisite: You must have the Owner role in the destination workspace.

Before you copy

  • Independent Copying: Components are copied independently of templates.
  • Dependencies: If a template depends on reusable components, make sure to copy the required components before copying the template itself.

Steps to copy components to another workspace

1Open the source workspace.
2Go to Templates → Fyno.
3Click Components in the page header.
4Click the three-dot (⋮) menu on the component you want to copy.
5Select Copy to another workspace.
6Select one or more components to copy.
7Click Copy Selected Components.
8Select up to five destination workspaces where you have the Owner role.
9Click Confirm.

The copied components will now be available in the selected destination workspaces.

Component versioning

Component versioning follows the same behavior as template versioning:

  • New Components: If the component does not exist in the destination workspace, it is created as v1 (Test).
  • Existing Components: If the component already exists, a new standalone version (for example, v2) is created without affecting existing versions. You can later save it as the new Test version or promote it to Live when you are ready.

How to raise Approval requests

If your workspace has maker-checker workflow enabled for Components, the ‘Go Live’ action requires an additional approval step. You’ll need to choose from your designated approvers who will review and authorize the component related changes. You can read more about it here