What is a backend function?

An Backend Function is a small serverless function in Superdev that runs logic on the backend, such as processing custom API calls, or integrating with external services such as Monday.com.

How is it different from the built-in integrations?

Superdev does have a list of built-in integrations for sending emails, integrating with AI, extracting data from files and images, and more, but backend integrations give you more flexibility and control. To learn more about the built-in integrations, you can check the Built-in Integrations section.

Why do I need a backend function?

Sometimes your app needs custom backend logic beyond basic data CRUD (Create, Read, Update, Delete). Superdev’s backend functions are serverless functions (similar to AWS Lambda) that let you run code on the backend triggered by events or requests. It means you can define desired backend behavior in plain language, and Superdev will write and deploy the necessary Backend Function code for you.

Common Use Cases

Custom Payment Processing
  • Process payments with custom logic (discounts, tax calculations, subscription handling)
  • Integrate with payment providers like Stripe, PayPal, or custom payment gateways
  • Handle webhooks from payment services
External API Integrations
  • Sync data with CRM systems (Salesforce, HubSpot)
  • Integrate with project management tools (Jira, Asana, Monday.com)
  • Connect to social media APIs (Twitter, LinkedIn, Instagram)
  • Pull data from weather services, stock market APIs, or news feeds
Scheduled Tasks

e.g. send a daily email to all users, or e.g. performing a cleanup of old data

How to create a backend function?

To add a backend function, simply describe what you need in the Superdev chat. For example: “When a user submits text, convert it to speech using OpenAI’s text-to-speech API and return an audio file URL.” Superdev will generate the code for this logic as a backend function (in this case, calling the OpenAI TTS API) and deploy it to your project. It will also update your Superdev app to call this function at the right time (e.g., when the user clicks a “Convert to Speech” button) and handle the response.

How to monitor a backend function?

You can find and monitor your backend functions in the Superdev dashboard under the “Backend Functions” section. Each function will have logs that show recent executions and any output or errors. Superdev automatically monitors these functions and will surface error messages in the chat to help you troubleshoot when something goes wrong. Of course, you can always check the function logs yourself for more details or for peace of mind.