Skip to main content
This is part 2 of the Your First Plugin tutorial. Make sure you’ve completed 1. Plugin Definition first.
Nodes are where your plugin’s logic lives. Let’s create a node that takes a city name and returns a formatted weather description.

Define the node

Add to weather_plugin/__init__.py:

Register the node in your plugin

Update the plugin class to include the node:

Test it locally

Restart the plugin server and test the node execution:
You should get back:

Key concepts

Available data types

Node metadata

Next: First Integration →

Define credentials and an integration for an external API.