Scheduled Tasks

Create a scheduled task

Changed on

Creates a scheduled task owned by this key's member or service account. New tasks start active. The response does not include runCount.

post/automations/v1

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/automations/v1
  • Auth
    HTTP bearer

Request body

namestring required
promptstring required
frequency'MANUAL' | 'DAILY' | 'WEEKDAYS' | 'WEEKLY' | 'MONTHLY' | 'SELECTED_WEEKDAYS' required
timeOfDaystring nullable

24 hour HH:mm. Required unless frequency is MANUAL.

dayOfWeekinteger nullable

Required for WEEKLY. 0 is Sunday and 6 is Saturday.

dayOfMonthinteger nullable

Required for MONTHLY.

daysOfWeekinteger[]

Required for SELECTED_WEEKDAYS.

timezonestring nullable

IANA timezone. Empty or omitted on a scheduled frequency is stored as UTC.

modelMode'UNSET' | 'EXPLICIT' | 'AUTO'
modelIdstring uuid nullable

Required in the same request when modelMode is EXPLICIT.

assistantIdstring uuid nullable
taggedAssistantIdstring uuid nullable
taggedIntegrationIdsstring[]
taggedKnowledgeFolderIdsstring[]
taggedWorkflowIdsstring[]
taggedSkillSlugsstring[]
attachmentIdsstring[]

Response

Scheduled task created. The automation object does not include runCount.

Changes