Functions

Exact answers, every time.

Functions are small pieces of Python that agents, apps and schedules run for exact work: calculations, lookups and syncing data. Where an answer must be precise, like a lead score, a price or a currency conversion, a function returns the same result every time.

What is a function?

A function is a short piece of Python with an input and an output. Agents call functions when a job needs exact logic instead of judgement, such as working out a quote from your price rules. Apps and schedules can run them too.

Plain Python

Write a function, or describe it and let FrugalPod draft it for you to check.

Agents call them

Add a function to a skill, and agents use it whenever the job needs it.

Run on a schedule

Sync data or refresh numbers every morning with Schedules.

Every run logged

See inputs, outputs and how long each run took.

How it works

  1. 01

    Write or describe it

    Write the Python, or describe what it should do.

  2. 02

    Test it

    Run it on sample input and check the result.

  3. 03

    Use it

    Add it to an agent’s skills, an app or a schedule.

Example

Scoring a lead

A score_lead function rates each enquiry against the company’s rules. The lead qualifier calls it for every new lead, so scores are consistent from day one.

Illustrative example.

Works with the rest of Studio

Every building block shares the same agents, data and limits.

Questions about Functions

Something missing? Write to admin@frugalpod.com and a person will reply.

Do I need to know Python?

No. You can describe what a function should do in plain words and check the draft. Developers can write the code directly.

When should I use a function instead of an agent?

Use a function when the answer must be exact and repeatable, like a calculation or a lookup. Use an agent when the job needs judgement.

What can call a function?

Agents, apps you build and schedules. Every run is logged.

Hand off your first job today.

100 free credits. No card needed.