<aside> 💡 Before reading this guide, make sure you’ve read through Quickstart: How to build a Plugin to set up your sandbox plugin.

To get up and running with an example, you can clone our remove-bg example plugin on Github.

</aside>

Step 1: Create a Function

Sign in to your Google Cloud and go to https://console.cloud.google.com/functions to create a function

Screen Shot 2023-08-30 at 4.29.29 PM.png

Allow unauthenticated invocations so Playbook can access your function

Step 2: Upload or write your code

You can use our remove-bg example here for a quick set up

Screen Shot 2023-08-30 at 4.34.28 PM.png

Step 3: Deploy the function

Click deploy on the bottom left of the screen and grab the URL to your function at the top of the screen or click “TRIGGER” if you have multiple entry points to grab the HTTPS one.

Screen Shot 2023-08-30 at 4.45.49 PM.png

Step 4: Connect it to Playbook

Under the Plugins tab of https://www.playbook.com/account, you can create/edit your Sandbox Plugin to use your API URL as the Plugin Invocation URL.

<aside> ✅ Congratulations! You should now be able to invoke your plugin and see activity in your Cloud Functions logs.

</aside>