Developing
This assumes you already installed the SDK and set things up for development.
Set Up Your Connection
You should start with setting up your connection. First, adjust your Options and Secrets so that you collect the necessary information for connecting to the external system you want to integrate with.
For example:
from pydantic import BaseModel
from integrations_sdk.server import start_workflow_server
class Options(BaseModel):
baseUrl: str
class Secrets(BaseModel):
apiKey: str
app = start_workflow_server(
"fns",
"http://localhost:9000",
"engine-api-key",
Options,
Secrets,
dev_mode=True # Set to true.
)Test Creating Your Connection
Start the server and go to http://localhost:8000/docs
You will be presented with the API documentation where you can test your server.
Creating a connection is done using the POST /connections endpoint:
Store the connection ID you get back and then close the server.
Adding an Action
Let's add an action by creating the directory fns, then create the file fns/actions.py and add the following action:
Restart the server and head to http://localhost:8000/docs again. You will see a new endpoint, POST /connections/{connection_id/call/say_hello. Go ahead and try it out (with the ID of the connection you created in the first step):
Read More
Check the documentation on actions and triggers to read more.
Last updated
Was this helpful?

