This is an old revision of the document!


Table of Contents

Agents

Agents run periodically and execute code specified by the user.

Note: Agents are only available in billed environments that run Protogrid 2.1 or higher.

Setup

To set up an agent, there are two necessary steps:

  1. Under Design → Code, create an Agent Library and add your code to the on_schedule function.
  2. Under Design → Proto, select the Proto you want to use and add corresponding the Agent Library

Execution

Agents are checked every hour. If any DateTimeField on a card has a larger value than the current time and the Agent has not yet run since, the Agent gets triggered and the code in the Agent Library is executed in the context of this card. All agent executions are logged in the agent_log field on the respective card.

Print/export