Skip to content
🎉 Bem-vindo! Sinfonia by 27Devs é uma plataforma completa de orquestração de robôs, solicite já seu acesso.

Your First Bot

In this tutorial you publish a simple Python bot directly from the portal, run it and check the result in the logs. It takes a few minutes and walks through the whole Sinfonia cycle: publish → run → monitor.

Note

Before you start, you need:

Create the bot

On the Bots screen, create a new bot of type Script and fill in:

FieldValue
Namebot-hello-world
Version1.0.0
LanguagePython
Agentthe agent you installed
ModeHeadless
Parameters (Json){"name": "Sinfonia"}

In the Script field, paste the code below and leave Dependencies empty:

main.py
import os

name = os.environ.get("name", "world")
print(f"Hello, {name}! My first Sinfonia bot is running.")

JSON parameters reach the bot as environment variables, which is why the script reads the value with os.environ. Save the bot.

Tip

Each field is described in Publishing Bots → Script.

Run the bot

In the bot list, click the run icon in the Actions column of bot-hello-world. On the EXECUTE BOT screen, check the agent and click Execute Now.

Follow the execution

Open the Executions screen. The execution first shows as

RUNNING
and, when it finishes, as
SUCCESS
. Click **Info** to see the logs. The script output should be there:
Hello, Sinfonia! My first Sinfonia bot is running.

If the execution ends as

ERROR
, open the logs to see the error message and check that Python is installed on the agent machine.

Next steps

Your bot is published. From here you can:

Last updated on