Aller au contenu
Agentivity
Star on GitHub Commencer gratuitement

Let an agent read and fill a Data Table

Ce contenu n’est pas encore disponible dans votre langue.

An agent can work with a Data Table by itself: look up a row, add one, change one. You give it a tool for one table, and you decide what it may do with it.

Both can read and fill a table. They are not the same.

Step in a workflowTool of an agent
Who decides when to use the tableYou. The step always runs at its place.The agent, from the request and its instructions.
What is writtenExactly what you set.What the agent decides to write.
Good forKeeping a record that must always be made.Looking things up, and work where the agent must judge.

When a row must be written every time, use a workflow step. See Read and write a Data Table from a workflow.

  1. Open the agent in its editor.
  2. In the Nodes catalog, open AI > Tools, or search for Data Table.
  3. Drag AI Agent Data Table Tool onto the canvas, below the agent.
  4. Drag from the diamond of the tool to the sixth diamond of the agent, AI Agent Tools.
  1. Right-click the tool and select Edit.
  2. Choose the table the tool works on.
  3. Choose what the agent may do:
SettingWhat it allows
Read rowsThe agent can look up rows.
Insert rowsThe agent can add rows.
Update rowsThe agent can change rows.
Delete rowsThe agent can delete rows.
  1. Select Apply, then Publish.

Give only what the job needs. An agent that looks up customers needs to read, and nothing else.

To give the agent several tables, add one tool for each table. In each tool you can set a prefix for the names of its actions, so that the agent tells the tables apart.

The agent sees the name of the table and of its columns. Say in its instructions when to read and when to write. For the Reminder Writer:

Before you write a reminder, look in the table reminders whether a reminder was already sent for this invoice. If one was sent less than seven days ago, say so and do not write a new one.

Run the agent with a request that needs the table. Then open the table: a row that the agent added is there. See Run an agent and read its answer.

  • An agent can make mistakes. Before you allow it to change or delete rows, decide whether a person must approve first. See Let an agent ask a person before it decides.
  • The rows that an agent reads are sent to the AI model. Do not give an agent a table that holds data which must not leave your server.

Give tools to an agent, for the other tools.