Skip to main content
Functions live at workspace level, on the workspace Functions page. Creating a function sets up a private GitHub repository from a Python or C# template, with a GitHub Action that publishes each release to Speckle Automate.
Speckle Automate is available only on Speckle Enterprise Server. For deployment setup, see Enterprise license — Automate.

Authorize GitHub the first time

The first time you create a function, New function opens an Authorize GitHub dialog instead of the create flow. Select Authorize and approve the Speckle Automate GitHub app. You return to the Functions page with the Create function dialog open.
Speckle Automate then appears in your GitHub account’s authorized applications. You can revoke access at any time, but Speckle needs it to create new function repositories.
GitHub Applications settings, Authorized OAuth Apps tab, listing Speckle Automate.

Create the function

1

Open the Functions page

Open a project in the workspace, go to Settings → Automations, and select View functions. The workspace Functions page opens.
2

Start a new function

Select New function. The Create function dialog opens with the available templates.
3

Choose a template

Select the Python or C# template, then select Next. Each template includes the Automate SDK for its language.
4

Name and describe the function

Enter a Function name and a Description. The name is also the GitHub repository name.
5

Create the function

Select Create. The function’s page opens, with its new repository linked under Source.
When your GitHub account belongs to organizations, the dialog also shows GitHub organization. Choose one to create the repository there; leave it empty to use your personal account.

What the template sets up

The new repository is ready to build and release:
  • It is generated from the template project you chose.
    GitHub repository header showing a function repository generated from specklesystems/speckle_automate_python_example.
  • It contains a GitHub Action (.github/workflows/main.yml) that builds your function and publishes each release.
    GitHub Actions tab showing the build and deploy Speckle functions workflow from main.yml.
  • It holds the SPECKLE_FUNCTION_ID and SPECKLE_FUNCTION_TOKEN repository secrets the action uses to publish.
    GitHub repository secrets listing SPECKLE_FUNCTION_ID and SPECKLE_FUNCTION_TOKEN.
The repository is private. Whether you keep it private or make it public depends on your team’s open-source or source-available approach; Speckle Automate supports both. The function’s page shows the repository README only when the repository is public.
Manage repository access carefully, based on your team’s workflows and requirements.

Publish the first release

Clone the repository, tailor the template code to your logic (see Making Your Function), then create a release on GitHub. The function appears on the workspace Functions page, and in the Function list when you create an automation, only after its first release. See Releasing a New Version.
Try your function against project data before you release it with a test automation.
Last modified on October 19, 2026