Skip to main content
Functions run server-side logic for your website: calling third-party APIs, handling payment webhooks, running AI features, sending data to other services, and anything else that shouldn’t happen in the visitor’s browser. Lumi writes, deploys and connects them for you.

Easy to create

Generate functions by describing what you want in the Lumi chat. Area Gi
1

Describe the function

Directly describe the feature you want to build, for example:
2

Activate Functions

If Functions aren’t active in your project yet, Lumi shows a card in the chat so you can turn them on. You can also activate them yourself (see below).
3

Let Lumi integrate

Lumi writes the function, deploys it, and connects your website’s pages to it.
4

Provide the API key

If the service needs an API key, Lumi shows a secure input card in the chat. Enter the key there, not in a chat message. Lumi stores it in your project’s Secrets so it is never exposed in your website’s code.Screenshot 20251011 143703 Pn

Activate Functions

  • Activate when creating a new project on the homepage
    1

    Click "Toolbox" at the bottom left of the input box

    20251011 143408 Jpe
    2

    Check "Functions"

    Screenshot 20251111 181701 Pn
    3

    Send your message

    The new project is created with Functions activated.
  • Activate in an existing project
    1

    Open the "Cloud" tab in the workspace

    2

    Select "Functions"

    3

    Click "Activate"

    Screenshot 20251111 182134 Pn

Debugging built-in

Open Cloud → Functions to see every function in your project. Select a function to switch between three tabs:
  • Code: the function’s source code. Subscribers to a paid plan (Lite or Pro) can edit it here and click Save All to save the changes, or Reset All to discard changes.
  • API: how the function is called, including its address, request parameters and responses.
  • Logs: the function’s recent executions, outputs and errors. Click Refresh to load the latest entries.
Click Test Function to send a request with your own Payload, then Run Function to see the response.
If a function doesn’t behave as expected, just tell Lumi what went wrong. Lumi reads the function’s logs itself to find and fix the problem.
20251011-150001

Functions Code

20251011-150010

API Doc

20251011-150013

Logs

20251011-143143

Test