Quickstart: From flow to live surface
This quickstart guide walks you through creating your first AI workflow and deploying it as a live API endpoint. You'll transform website content into social media content in under 10 minutes.
New to Flows, Products, or surfaces? Learn the basics: What are flows? | What are products? | What are surfaces?
What you'll build
A Flow that converts website content into ready-to-publish social media posts for Twitter, LinkedIn, and Instagram, exposed as a REST API you can call from any application.
Before you begin: You'll need a Runtype account. Create one if you haven't already.
Step 1: Create a Flow
You'll build a Flow with two steps: one to fetch the website content, another to transform it into social posts.
From the dashboard, click Flows in the sidebar
Click + Create Flow
Click Start from scratch
Click the + button to add your first step
Select Fetch URL (learn more about built-in tools)
Configure the Fetch to use "Firecrawl (Web Scraping)"
Type in this variable under from URL: {{website}}
Click the + button to add a new step and select Run task (a prompt step — see creating and editing Flows)
Paste the prompt text in the User instructions:
Here is website content:
{{fetch_result}}
Generate three social media posts for this article. Return a JSON object with these keys: "twitter" (under 280 characters), "linkedin" (2-3 paragraphs, professional tone), and "instagram" (casual, with emoji suggestions).Name your Flow: Website Content to Social Media Content
Click Create
Step 2: Test your Flow
Before deploying, verify your Flow works as expected. Learn more about debugging Flows.
Click the Run button on your Flow
Enter a Value (e.g. https://runtype.com) next to the Field Name titled "website"
Click Run Flow
Review the JSON response to confirm you're getting posts for all three social media platforms
Step 3: Create a Product
Products group your Flows and Agents for deployment. Learn more about creating Products.
Click Products in the sidebar
Click + New Product
Click REST API as your surface
Provide a name for your new Product (e.g. "Content Repurposer")
Click Use Existing, followed by Flows
Select the Flow you created earlier: "Website Content to Social Media Content"
Click Create REST API
Runtype will then create your new Product with the selected Flow as your Capability (learn more about Capabilities and API Surfaces) and the REST API as your Surface.
Step 4: Call your endpoint
Use the endpoint URL and API key to make your first request. Learn more about calling API endpoints or see setting up an API Surface for configuration options.
Step 5: Success
Your API is now live! You can call this endpoint from any application to convert articles into social media content.
Next steps
Now that you've built and deployed your first Flow to Surface as a Product, explore these topics:
Flow step types — Build more complex Flows with conditional logic, loops, and transformations
What are Tools? — Extend your Flows and Agents with custom and built-in tools
What are Logs? — View run outputs and troubleshoot Flow executions
Platform keys vs Bring Your Own Key (BYOK) — Understand API key options for AI models and integrations
Development vs production environments — Manage separate environments for testing and live deployments
What are Records? — Use Records to provide structured context for your Flows
What are Evals? — Run evaluations to test different models and prompts