Triggers - supercog-ai/community GitHub Wiki

Running your agent asynchronously

By default, all agents operates as "chat bots". This means that to activate the agent you need to send it some request by typing in the chat box.

However, Supercog is designed to run agents completely autonomously by triggering agents to run in response to different kinds of events.

To choose a trigger for your Agent, just change the Trigger drop-down in the Agent editor:

change:

Following are the currently supported triggers:

  • "Auto run" means that the agent starts as soon as you open it

  • "Scheduler" means to run the agent on a periodic schedule. Just type the schedule you want in English, like "every morning at 9am PST".

  • "Email" allows you to trigger your agent by the arrival of an email message. When you select this option the Agent will display a dedicated email address. Any email sent to that address will trigger your agent, and the body of the email message will be provided as the input request to the agent.

  • "Database" performs a simple polling operation on a database table and triggers your agent when new data is inserted into the table. To use this trigger you need to create a Database Connection with proper credentials and then attach it as a tool to your agent.

  • "Slack" - you can interact with your agent from Slack. Enter a trigger keyword which people can use to activate your agent. You need to add the Supercog Slack app to your Slack workspace, and invite the @supercog user into the Slack channel. Once that is done then you can just use @supercog I need some help (using 'help' as the trigger keyword) and your agent will be activated.