My name is Das and I am building agent which will track expenses and advise along the way. I plan to use Telegram as a channel for users.
My agent has repetitive tool: checkSubscriptionStatus. It will check every time when user tries to interact with an agent.
How can I create reusable "function"?
And for data storage I thought to use Google Sheets. But is Retool database is better?
It sounds like you could use a custom tool or workflow for checkSubscriptionStatus. Here's our documentation on custom tools. They are quite similar to workflows, but don't have the extra costs associated with Workflow runs. On the other hand, Workflows can be convenient in that they can be triggered in other places outside of Agents
As far as data storage, its personal preference, but here's a few things to consider:
Retool Database runs on Postgres, so some familiarity with sql/Postgres is necessary
Postgres adheres to SQL standards (guardrails) to ensure that the data is consistent and accurate (primary keys, relationships between data, validation, etc)
Google Sheets is very flexible and easily accessible to teammates outside of Retool
Retool Database is designed to be a convenient way to store data to use within or outside of Retool. It is not designed to be a highly-available, scalable database service. We recommend a separate managed database provider if your use case requires these guarantees.