Functions are single methods written in any programming language that are fully managed serverless functions.


Creating your own functions is intuitive and powerful. Choose Storyscript for workflow and procedural functions. Choose another language for low and high-level logic and algorithms.

Storyscript Functions

Storyscript functions are useful for common procedures that you want to reuse in your application or share between other applications by submitting Storyscript functions to the Storyscript Hub.

Create your first Storyscript function

function spam_me text:string
    twitter tweet status:'@me {text}'
    twilio sms text:text to:'+310601010101'
    gmail send to:'' subject:'Read me' body:text

Now, we can call our function like this:

spam_me(text: 'doorbell rang!')

GPPL Functions

Coming soon

Looking forward to this feature? Click here to share your feedback.

Creating a function in a GPPL (like Python, Node, Go, Ruby, etc.) is very simple in Storyscript. These functions, like Storyscript functions, can be used anywhere in your Storyscript and shared to other applications when submitted to the Storyscript Hub.

Creating your first function

Let's use Python for this very simple example.

def main(principle: float, time: int, rate: float):
    return (principle * time * rate) / 100

🐍 Sssssweeet! We have a function, we called it main (common Python practice) and saved it to in the root of your git repository.

Now, let's add it to our repository of functions in your story.yml manifest.

    interest: ./
#   ^^ function name followed by it's location in your git repository

👍 Let's call our shinny new function in Storyscript.

result = interest(principle:4000, time:120, rate:.03)

Nice work! You just created a serverless function and called it in our Storyscript. 👏


Much like a traditional library of software, the Storyscript Hub is your registry of services and functions to share between applications and developers.

Using functions

Sharing and reusing functions is also easy. Discover functions in the Storyscript Hub and follow the directions in the Hub to use public or your private collection of functions cross application.

Submitting functions

Head over to Storyscript Hub to publish your functions privately or publicly.


Zero-devops deployments with Storyscript Cloud.

Storyscript Cloud abstracts away the unnecessary complexities in orchestrating, communicating and managing functions, including:

  1. Deployment
  2. Version management
  3. AB Testing
  4. Scaling
  5. Monitoring
  6. Health Checks
  7. Protocols
  8. Error handling
  9. Retry-logic
  10. Fail-over

✨🍰✨ All the above are no longer the responsibility of the developer.

Simply deploy your Storyscript application and Storyscript Cloud takes care of the rest.

Write your own story.


2019. Asyncy, Inc.