|
/ Documentation /Core Features/ Using the Convert to File App in OttoKit

Using the Convert to File App in OttoKit

Need to turn workflow data into downloadable files on the fly, HTML, CSV, ICS calendars, spreadsheets, PDFs, or even Base64? The Convert to File App lets you generate clean, ready-to-use files directly inside your automations. No external converters, no manual formatting, and no temporary scripts required.

You can pass raw data, mapped fields, or structured content depending on the file type youโ€™re generating. The app outputs a public file URL you can use anywhere in your workflow.

Note: This integration creates files only. It does not interpret or execute code inside the file (HTML, JS, etc.).

Actions in the Convert to File App

1) Convert to HTML

This action allows you to turn raw HTML content into a downloadable .html file.

To convert to HTML:

  1. Add a new action to your workflow.
  2. Search for Convert to File and select it.
  3. Choose Convert to HTML.
  4. Click Continue to open the Configure tab.
  5. Fill in the fields:

Data (required) โ€“ Specify or map the HTML data.
This should include your full HTML boilerplate, such as:

<!DOCTYPE html>

<html>

<head><meta charset=”UTF-8″><title>Sample</title></head>

<body><h1>Hello World</h1></body>

</html>

Click Show Optional Fields for additional configuration:

Filename โ€“ Specify the filename, e.g., index.html or index.
Inline CSS โ€“ Choose whether to inline CSS automatically (True or False).
Header Rows โ€“ Select whether to include header rows when converting table data (True or False).

  1. Click Continue to open the Test Step tab.
  2. Click Test to generate your HTML file.
  3. If everything looks good, click Save.

2) Convert to CSV

Turns structured CSV text into a .csv file ready for download or further processing.

To convert to CSV:

  1. Add a new action.
  2. Search for Convert to File.
  3. Select Convert to CSV.
  4. Click Continue.
  5. Fill in the fields:

Data (required) โ€“ Specify or map the CSV data (raw text).

Click Show Optional Fields for additional configuration:

Filename โ€“ The fileโ€™s name, e.g., index.csv or index.
Delimiter โ€“ Specify the CSV delimiter, e.g., , or ;.
Header Rows โ€“ Add header rows or not (True or False).

  1. Click Test, then Save.

3) Convert to ICS

Create calendar events in .ics format from workflow data.

To convert to ICS:

  1. Add a new action.
  2. Search for Convert to File and choose Convert to ICS.
  3. Click Continue.
  4. Fill in the fields:

Data โ€“ Provide ICS markup or add a space ” ” when using the form fields below.
Click โ€œAdd attendeesโ€ to include one or more attendees.

Then specify:

  • Filename โ€“ e.g., event.ics or index.
  • Event Title โ€“ Name of the event.
  • Start Time โ€“ YYYY-MM-DDTHH:MM:SSZ.
  • End Time โ€“ Same format as above.
  • All Day โ€“ True/False.
  • Location โ€“ Event location.
  • Description โ€“ Event details.
  • Organizer Email Address
  • Organizer Name
  • Calendar Name
  • Timezone โ€“ e.g., “America/New_York”.
  • Status โ€“ Confirmed, cancelled, or tentative.
  1. Test and save.

A link to the ICS is then generated:

4) Convert to JSON

This action allows you to generate a .json file from your mapped data.

To convert to JSON:

  1. Add a new action and select Convert to JSON.
  2. Configure the fields:

Data (required) โ€“ Wrap your data in a top-level key:

{

  “data”: {

    “name”: “OttoKit”,

    “version”: 1

  }

}

Filename โ€“ e.g., index.json.
Pretty โ€“ Enable pretty formatting (True/False).

  1. Test and save.

5) Convert to ODS

Convert mapped data into an OpenDocument Spreadsheet (.ods).

To convert to ODS:

  1. Add a new action and choose Convert to ODS.
  2. Configure the fields:

Data (required) โ€“ Specify the ODS-compatible data.

Show Optional Fields:

  • Filename โ€“ e.g., index.ods.
  • Sheet Name โ€“ Name of the spreadsheet tab.
  • Header Rows โ€“ Include header rows or not.
  • Compression โ€“ Compress file output (True/False).
  1. Test and save.

A link to the ICS is then generated:

6) Convert to RTF

Generate a Rich Text Format file from raw RTF markup.

To convert to RTF:

  1. Add the action and select Convert to RTF.
  2. Configure:

Data (required) โ€“ Specify or map the RTF content.

Show Optional Fields:

  • Filename โ€“ e.g., index.rtf.
  • Line Separator โ€“ e.g., \n.
  • Header Rows โ€“ Include header rows (True/False).
  1. Test and save.

7) Convert to TXT

This action allows you to create a plain text file with flexible formatting options.

To convert to TXT:

  1. Add the action and choose Convert to TXT.
  2. Configure:

Data (required) โ€“ Specify or map the text content.

Show Optional Fields:

  • Filename โ€“ e.g., index.txt.
  • Encoding โ€“ e.g., “utf-8”.
  • Line Separator โ€“ e.g., \n.
  • Pretty โ€“ Enable pretty formatting (True/False).
  • Max Width Per Line โ€“ Outline the maximum characters per line.
  • Indent โ€“ Indent string for formatting.
  • Trim โ€“ Trim whitespace (True/False).
  1. Test and save.

8) Convert to XLSX

Convert workflow data into an Excel .xlsx file.

To convert to XLSX:

  1. Add a new action and select Convert to XLSX.
  2. Configure:

Data (required) โ€“ Map XLSX-compatible data.

Show Optional Fields:

  • Filename โ€“ e.g., index.xlsx.
  • Sheet Name โ€“ Tab name.
  • Header Rows โ€“ Include headers (True/False).
  • Compression โ€“ Compress output (True/False).
  1. Test and save.

9) Convert to PDF

Turn mapped content into a downloadable PDF file.

To convert to PDF:

  1. Add the action and choose Convert to PDF.
  2. Configure:

Data (required) โ€“ Specify or map the PDF data.

Show Optional Fields:

  • Filename โ€“ e.g., index.pdf.
  • Page Size โ€“ e.g., A4.
  • Font Size โ€“ e.g., 18.
  • Margin โ€“ Page margins.
  • Layout โ€“ Landscape or Portrait.
  • Header Row โ€“ Include header rows or not.
  1. Test and save.

10) Move Base64 String to File

Convert Base64-encoded data into a downloadable file.

To move Base64 to a File:

  1. Add the action and select Move Base64 String to File.
  2. Under the configure tab:

Data (required) โ€“ Map the Base64 string.
Mime Type โ€“ Choose the target MIME type (pdf, jpeg, html, csv, etc).

Optional Fields:

  • Filename โ€“ File name.
  • Encoding โ€“ utf8, ascii, or binary.
  1. Test and save.

11) Convert to Base64

Convert a file URL into a standard Base64 format.

To convert:

  1. Add the action and choose Convert to Base64.
  2. Configure:

URL (required) โ€“ Map the file URL.
Filename โ€“ Optional output filename.

  1. Test and save.

Here is the Base64 file:

12) Convert to Raw Base64

Generate raw Base64 output without formatting.

To convert:

  1. Add the action and choose Convert to Raw Base64.
  2. Configure:

URL (required) โ€“ Map the file URL.

  1. Test and save.

13) Fetch File via Pre-Signed URL

Download a file from a pre-signed URL and return a public URL for the uploaded file.

To fetch:

  1. Add the action and select Fetch File via Pre-Signed URL.
  2. Configure:

URL (required) โ€“ Enter the pre-signed URL.
Filename โ€“ Provide the output filename.

  1. Test and save.

With the Convert to File App in OttoKit, you can turn structured data into real files, spreadsheets, documents, calendars, text files, or even Base64 in seconds. No outside tools, no formatting headaches, and no manual conversions.

Whether youโ€™re building automated reports, generating files for clients, packaging data for downstream systems, or converting workflow output into downloadable documents, OttoKit makes it fast, flexible, and reliable.

Start using the Convert to File App today and add powerful file-generation capabilities to every workflow you build.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top