This node allows you to trigger the pipeline to run at specified time intervals.

The node has three progressive steps:

  1. Action: Select the trigger interval

  2. Account: No need to select anything here (as it is not required for cron trigger)

  3. Configure: Configure the trigger

Node Inputs

In Daily, Weekly, Monthly:

  1. Select Time: Time of day to trigger (HH:MM)
    • Type: Text

In Custom Cron Expression:

  1. Cron Expression: Custom cron expression
    • Type: Text

Node Parameters

On the face of the node:

  1. Enable Automation: Enable the automation to run the pipeline when the trigger event happens.
    • Type: Toggle
  2. Select schedule type: Select the schedule type. The available options are Daily, Weekly, Monthly, Custom Cron Expression.
    • Type: Dropdown
  3. Select Timezone: The timezone for the trigger. The available options are listed here Time Options. The default option is UTC.
    • Type: Dropdown

In Daily:

  1. Trigger On Weekends: Trigger the pipeline on weekends
    • Type: Boolean

In Weekly:

  1. Select Day of the week: Day of the week to trigger
    • Type: Dropdown

In Monthly:

  1. Select Day of the month: Day of the month to trigger
    • Type: Dropdown

Node Outputs

  1. Timestamp: The timestamp of the cron trigger
    • Type: Text
    • Example usage: {{trigger_0.timestamp}}

Considerations

  • The trigger node will only work if the pipeline is deployed and the Enable Automation parameter is set to true.

Example

The below example is a pipeline which send an email every minute to the email address answering the question: What is the tallest builiding in NY?

  1. Cron Trigger Node: The cron trigger node
    • Cron Expression: * * * * *
    • Enable Automation: true
  2. Text Node: Question to answer with the current timestamp
    • Text: What is the tallest builiding in NY? {{trigger_0.timestamp}}
  3. LLM Node: Uses the LLM to answer the query and write the email body
    • System (Instruction): Write an email answers the question based on Context. Only write the email body, not the subject
    • Prompt: Question: {{text_0.text}}
  4. Gmail Node: Sends the generated email
    • Action: Send Email
    • To: sample@vectorshift.ai
    • Subject: {{trigger_0.timestamp}}
    • Body: {{openai_0.response}}