{
  "name": "Voice appointment reminders",
  "description": "The AI voice agent calls, confirms and logs any changes.",
  "tags": [
    "Services"
  ],
  "pieces": [
    "@flooows/component-schedule",
    "@flooows/component-google-calendar",
    "@flooows/component-lyria",
    "@flooows/component-google-sheets"
  ],
  "template": {
    "displayName": "Voice appointment reminders",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "Every day at 9:00",
      "settings": {
        "pieceName": "@flooows/component-schedule",
        "pieceVersion": "~0.1.22",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "every_day",
        "input": {
          "hour_of_the_day": 9,
          "timezone": "Europe/Madrid",
          "run_on_weekends": false
        },
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Read tomorrow's appointments",
        "settings": {
          "pieceName": "@flooows/component-google-calendar",
          "pieceVersion": "~0.13.4",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "google_calendar_get_events",
          "input": {
            "event_types": [
              "default"
            ]
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Call with the AI voice agent to confirm",
          "settings": {
            "pieceName": "@flooows/component-lyria",
            "pieceVersion": "~1.0.0",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "outbound_ai_call",
            "input": {
              "to": "{{step_1.items[0].description}}",
              "goal": "Confirmar la cita de mañana o anotar el cambio que pida el cliente."
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          },
          "nextAction": {
            "name": "step_3",
            "type": "PIECE",
            "valid": false,
            "skip": false,
            "displayName": "Log the confirmation or change",
            "settings": {
              "pieceName": "@flooows/component-google-sheets",
              "pieceVersion": "~0.19.5",
              "pieceType": "OFFICIAL",
              "packageType": "REGISTRY",
              "actionName": "insert_row",
              "input": {
                "values": {
                  "Cita": "{{step_1.items[0].summary}}",
                  "Resultado": "{{step_2.outcome}}"
                }
              },
              "inputUiInfo": {},
              "propertySettings": {},
              "errorHandlingOptions": {
                "retryOnFailure": {
                  "value": true
                },
                "continueOnFailure": {
                  "value": false
                }
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/en/templates/appointment-reminders-by-voice",
  "metadata": {
    "publisher": "flooows",
    "lang": "en",
    "setupMinutes": 9,
    "creditsPerRun": 2
  }
}