TypingMind Integration

TypingMind is a powerful chat UI for various AI models. This guide will help you set up refile as a plugin within TypingMind.

Getting Your API Key

To use refile with TypingMind, you’ll need a refile API key. To get an API key for free, just sign up on refile.co, and press the copy button on the dashboard!

Quick Install

The fastest way to add refile to your TypingMind workspace is through quick installation:

  1. Install the plugin from here: Install refile Plugin

If you have issues with the quick install method, try clicking “Import” in the TypingMind plugins section and pasting the URL there. Alternatively, use the manual installation method.

  1. Configure the “User Settings” section

Manual Installation

You can skip the manual installation if you successfully completed the quick install above.

If you prefer to manually install the plugin, follow these steps:

  1. Click “Create Plugin” on the TypingMind plugins section
  2. Click “JSON Editor”
  3. Copy and paste the following JSON configuration:
{
	"uuid": "5393e8f3-bcc0-46be-a382-64c6c8558460",
	"id": "generatePdfFromMarkdown",
	"emoji": "🧩",
	"title": "Generate PDF - refile",
	"overviewMarkdown": "# refile - TypingMind plugin\n\nThis is the official TypingMind plugin for [refile](https://refile.co).",
	"openaiSpec": {
		"name": "generatePdfFromMarkdown",
		"description": "Generate a PDF from Markdown via refile (refile.co), the easiest and fastest PDF API. After generation, GIVE THE URL TO THE USER.",
		"strict": false,
		"parameters": {
			"type": "object",
			"properties": {
				"markdown": {
					"type": "string",
					"description": "Markdown content of the PDF. GitHub flavored markdown is supported, including tables, task lists and custom HTML with inline CSS"
				}
			},
			"required": ["markdown"]
		}
	},
	"userSettings": [
		{
			"name": "refileApiKey",
			"label": "refile API key",
			"description": "Your refile API key",
			"type": "password",
			"required": true
		},
		{
			"name": "theme",
			"label": "Theme",
			"description": "The theme to use for the PDF",
			"type": "enum",
			"values": ["modern", "basic"],
			"required": false
		},
		{
			"name": "pageNumeration",
			"label": "Page Numeration",
			"description": "The position of the page numbers",
			"type": "enum",
			"values": ["center", "none", "left", "right"],
			"required": false
		},
		{
			"name": "pageSize",
			"label": "Page Size",
			"description": "The size of the page to use for the PDF",
			"type": "enum",
			"values": [
				"A4",
				"A0",
				"A1",
				"A2",
				"A3",
				"A5",
				"A6",
				"A7",
				"A8",
				"A9",
				"Letter",
				"B1",
				"B2",
				"B3",
				"B4",
				"B5",
				"B6",
				"Ledger",
				"Legal",
				"Executive",
				"Folio",
				"Tabloid"
			],
			"required": false
		}
	],
	"code": "# Your JS code here",
	"syncedAt": null,
	"authenticationType": "AUTH_TYPE_NONE",
	"implementationType": "http",
	"httpAction": {
		"id": "ce2d387e-7078-4f4a-9ceb-77ee088c71b4",
		"name": "",
		"url": "https://www.refile.co/api/v1/pdf/markdown",
		"method": "POST",
		"hasBody": true,
		"hasHeaders": true,
		"requestHeaders": "{\n  \"Authorization\": \"Bearer {refileApiKey}\"\n}",
		"requestBody": "{\n  \"markdown\": \"{markdown}\",\n  \"output\": \"url\",\n  \"theme\": \"{theme}\",\n  \"pageNumeration\": \"{pageNumeration}\",\n  \"pageSize\": \"{pageSize}\"\n}"
	},
	"oauthConfig": null,
	"outputType": "respond_to_ai",
	"dynamicContextEndpoints": []
}
  1. Configure the “User Settings” section

Usage

Once installed, you can use refile to generate PDFs directly from TypingMind. For example:

  • “Create a PDF report summarizing our quarterly results”
  • “Generate a PDF with the meeting notes in academic format”
  • “Convert this markdown content into a PDF with the modern theme”

Troubleshooting

If you encounter issues with the refile TypingMind plugin:

  • Verify your API key is correct and active
  • Verify you have enough credits to generate PDFs
  • Contact support@refile.co for additional assistance