Knomatic AI Studio

Functions and schedulesFunciones y horarios

5 min read6 min de lecturaUpdated Dec 2, 2026Actualizado el 2 dic 2026

A function is a small job that runs for your app: on a schedule, like a morning email, or when someone presses a button. You find them in Project Settings > Functions.Una función es una tarea pequeña que se ejecuta para tu app: según un horario, como un email cada mañana, o cuando alguien presiona un botón. Las encuentras en Project Settings > Functions.

There is no New function button. To create or change a function, ask the AI in the workspace, for example "send a summary of pending approvals every Monday at 9". The AI writes it, tests it with sample data and can set up its schedule in Testing. When the app has none, this tab says This app has no functions yet.No hay un botón New function. Para crear o cambiar una función, pídeselo al AI en el espacio de trabajo, por ejemplo "envía un resumen de las aprobaciones pendientes cada lunes a las 9". El AI la escribe, la prueba con datos de ejemplo y puede configurar su horario en Testing. Cuando la app no tiene ninguna, esta pestaña dice This app has no functions yet.

The list of functionsLa lista de funciones

Functions tab: a banner that 1 function has code your users do not have yet with Open Publish, search, filters All, Waiting to publish, On a schedule and When asked, and two functions with how they start, versions and last run
The Functions list. Each row shows how the function starts, the version your testers and your users have, and its last run.La lista de funciones. Cada fila muestra cómo se inicia la función, la versión que tienen tus testers y tus usuarios, y su última ejecución.
  • Search functions finds one by name or by what it does. Press / to jump to the search.Search functions busca una por nombre o por lo que hace. Presiona / para ir a la búsqueda.
  • Filters: All, Waiting to publish (a version your testers or users do not have yet), On a schedule and When asked, each with a count.Filtros: All, Waiting to publish (una versión que tus testers o usuarios todavía no tienen), On a schedule y When asked, cada uno con su cantidad.
  • Columns: How it starts (On a schedule, When asked or Nothing starts it yet), Testers have, Users have (a version number, with how far behind it is) and Last run (for example Worked, Failed or Didn't run).Columnas: How it starts (On a schedule, When asked o Nothing starts it yet), Testers have, Users have (un número de versión, con cuánto está atrasada) y Last run (por ejemplo Worked, Failed o Didn't run).
  • A banner tells you when functions have a version your testers do not have yet (Publish to testers), or code your users do not have yet, which goes out with the next publish to Live (Open Publish).Un aviso te indica cuando hay funciones con una versión que tus testers todavía no tienen (Publish to testers), o con código que tus usuarios todavía no tienen, que sale con la próxima publicación en Live (Open Publish).
  • Functions are not published one by one: they go out when you publish the app. A function that no screen or schedule uses yet is skipped.Las funciones no se publican una por una: salen cuando publicas la app. Una función que todavía no usa ninguna pantalla ni horario se omite.

A function's pageLa página de una función

Weekly approvals digest function: On a schedule, Working, next run tomorrow at 9:00 AM New York time, testers have version 6 and users version 4, Run it now, and the Status tab with Last 7 days, Next run and Who has it
A function's page, on the Status tab.La página de una función, en la pestaña Status.

The header shows the function's name and description, its state (for example Working, Paused, Hasn't run yet or Failing since a date), its next run and which version your testers and users have.El encabezado muestra el nombre y la descripción de la función, su estado (por ejemplo Working, Paused, Hasn't run yet o Failing since una fecha), su próxima ejecución y qué versión tienen tus testers y tus usuarios.

PartParteWhat it doesQué hace
Run it nowRuns the function in Testing right away, for the organization you pick. If your testers do not have its newest version yet, it runs as a test with sample input, and nothing real changes. If the test cannot run, it says why. It needs Editor access, and an account where Testing and Live are separate.Ejecuta la función en Testing en el momento, para la organización que elijas. Si tus testers todavía no tienen su versión más nueva, se ejecuta como prueba con datos de ejemplo, y no cambia nada real. Si la prueba no puede ejecutarse, te dice por qué. Requiere acceso de Editor, y una cuenta donde Testing y Live estén separados.
StatusHow the last 7 days went, the next run, who has which version, and the recent runs. When it fails, See the failed run and Ask Studio to fix it take you to the problem, the second one straight to the AI in the workspace.Cómo le fue en los últimos 7 días, la próxima ejecución, quién tiene qué versión y las ejecuciones recientes. Cuando falla, See the failed run y Ask Studio to fix it te llevan al problema, el segundo directo al AI en el espacio de trabajo.
HistoryRuns and versions day by day. Filter by where it ran, by time, or Only failed, and search. Open a run to see its result and log, or Run it again.Ejecuciones y versiones día por día. Filtra por dónde se ejecutó, por tiempo, o Only failed, y busca. Abre una ejecución para ver su resultado y su registro, o Run it again.
ScheduleWhen it runs on its own. See Schedules.Cuándo se ejecuta sola. Mira Horarios.
Keys & settingsPrivate keys and plain settings it reads. See Keys & settings.Claves privadas y ajustes que lee. Mira Claves y ajustes.
⋯ More actionsView code (read only), Copy function ID and Archive this function…. Archiving stops it for everyone and deletes its schedules; its history stays. If you cannot open a published version of the app, nothing is archived: add yourself in App users, or ask someone who can.View code (solo lectura), Copy function ID y Archive this function…. Archivarla la detiene para todos y elimina sus horarios; su historial se conserva. Si no puedes abrir una versión publicada de la app, no se archiva nada: agrégate en App users, o pídeselo a alguien que pueda.

Viewers can look but not change anything. Editors and Owners can run, schedule and change keys.Los Viewers pueden mirar pero no cambiar nada. Los Editors y Owners pueden ejecutar, programar y cambiar claves.

SchedulesHorarios (Schedules)

Schedule tab with two schedules: Monday to Friday at 9:00 AM running in Live and Testing, and Every day at 2:00 AM paused in Live, each with its organizations
Two schedules: one on in Live and Testing, one paused in Live.Dos horarios: uno activo en Live y Testing, y otro pausado en Live.
  • Each schedule card says when it runs (for example Monday to Friday at 9:00 AM), in which time zone, its last and next run, and where it runs: Live, Testing or both.Cada tarjeta de horario dice cuándo se ejecuta (por ejemplo Monday to Friday at 9:00 AM), en qué zona horaria, su última y su próxima ejecución, y dónde se ejecuta: Live, Testing o ambos.
  • Pausing: the switch next to Live or Testing pauses the schedule there, or turns it back on.Pausar: el interruptor junto a Live o Testing pausa el horario ahí, o lo vuelve a activar.
  • Organizations: a schedule runs separately for each organization in its list, with that organization's data. Open Organizations on the card to add one or pause it for a single organization.Organizaciones: un horario se ejecuta por separado para cada organización de su lista, con los datos de esa organización. Abre Organizations en la tarjeta para agregar una o pausarla para una sola organización.
  • Edit schedule changes it. The ⋯ menu has Delete schedule; past runs stay in History, and a deleted schedule can be restored from Deleted schedules (it comes back turned off).Edit schedule lo cambia. El menú ⋯ tiene Delete schedule; las ejecuciones pasadas quedan en History, y un horario eliminado se puede restaurar desde Deleted schedules (vuelve desactivado).

Add a scheduleAgregar un horario

  1. On the Schedule tab, click Add a schedule.En la pestaña Schedule, haz clic en Add a schedule.
  2. Under Where it runs, pick the Live app, the Testing app or both.En Where it runs, elige la app Live, la app Testing o ambas.
  3. If the app has organizations, pick them under For which organizations.Si la app tiene organizaciones, elígelas en For which organizations.
  4. Under How often should it run, choose every few minutes, every hour, daily or weekly, or a day of the month, then the times, the days and the Time zone. A custom option is there for people who know cron.En How often should it run, elige cada pocos minutos, cada hora, diario o semanal, o un día del mes, y después las horas, los días y la Time zone. Hay una opción personalizada para quienes conocen cron.
  5. Under If a run fails, choose whether to retry and how long to wait between tries.En If a run fails, elige si reintentar y cuánto esperar entre intentos.
  6. Choose whether it starts right away, then click Add schedule.Elige si empieza de inmediato y haz clic en Add schedule.

Schedules run what is published. A Testing schedule runs the version published to Testing, and a Live schedule the one published to Live. Until something is published there, it shows Won't run until you publish. The AI only creates and changes Testing schedules, and publishing does not copy a Testing schedule to Live: a person adds the Live schedule here. If the person who set up a schedule loses access to the app, it stops and asks you to Set it up again.Los horarios ejecutan lo publicado. Un horario de Testing ejecuta la versión publicada en Testing, y uno de Live la publicada en Live. Hasta que haya algo publicado ahí, muestra Won't run until you publish. El AI solo crea y cambia horarios de Testing, y publicar no copia un horario de Testing a Live: una persona agrega el horario de Live aquí. Si la persona que configuró un horario pierde el acceso a la app, el horario se detiene y te pide Set it up again.

Keys & settingsClaves y ajustes (Keys & settings)

  • Two tabs: Testing (what your testers use, and what the Studio uses while you build) and Live (what your users use). Anything not set in Live comes from Testing, marked From Testing.Dos pestañas: Testing (lo que usan tus testers, y lo que usa el Studio mientras construyes) y Live (lo que usan tus usuarios). Lo que no está definido en Live se toma de Testing, marcado From Testing.
  • Keys: passwords and API keys from other services. They stay hidden after you save them; you can replace or delete them.Keys: contraseñas y claves de API de otros servicios. Quedan ocultas después de guardarlas; puedes reemplazarlas o eliminarlas.
  • Settings: plain values the function reads, like an email address. They stay visible.Settings: valores simples que lee la función, como una dirección de email. Quedan visibles.
  • For the whole app, shared by every function: Access to your app's data (scheduled runs that read your data need a data access key, set up by a person and tied to them) and the Default organization used when you press Run it now or test a new version.For the whole app, compartido por todas las funciones: Access to your app's data (las ejecuciones programadas que leen tus datos necesitan una clave de acceso a datos, configurada por una persona y vinculada a ella) y la Default organization que se usa cuando presionas Run it now o pruebas una versión nueva.

Keys for outside services always go here, never in the app's Developer settings, where anyone who opens the app can see them.Las claves de servicios externos van siempre aquí, nunca en los Developer settings de la app, donde cualquier persona que la abra puede verlas.

On some older accounts, Testing and Live are not fully separate for functions. On those accounts a key saved only for Live may also be readable when the function runs in Testing, and the other way round. Until your account uses separate environments, do not count on the Testing and Live tabs to keep a real payment or production key away from testing. If you are not sure how your account is set up, ask your AI Studio admin.En algunas cuentas antiguas, Testing y Live no están del todo separados para las funciones. En esas cuentas, una clave guardada solo para Live puede leerse también cuando la función se ejecuta en Testing, y al revés. Hasta que tu cuenta use entornos separados, no confíes en las pestañas Testing y Live para mantener una clave real de pagos o de producción lejos de las pruebas. Si no estás seguro de cómo está configurada tu cuenta, pregúntale al administrador de AI Studio.