{
  "name": "Recordatorios de cobro escalonados",
  "description": "Email, WhatsApp y llamada del agente de voz según los días de retraso.",
  "tags": [
    "Finanzas"
  ],
  "pieces": [
    "@flooows/component-stripe",
    "@flooows/component-delay",
    "@flooows/component-gmail",
    "@flooows/component-whatsapp",
    "@flooows/component-lyria"
  ],
  "template": {
    "displayName": "Recordatorios de cobro escalonados",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "Factura pendiente de cobro",
      "settings": {
        "pieceName": "@flooows/component-stripe",
        "pieceVersion": "~0.9.1",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "new_invoice",
        "input": {
          "status": "open"
        },
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Esperar 3 días",
        "settings": {
          "pieceName": "@flooows/component-delay",
          "pieceVersion": "~0.4.1",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "delayFor",
          "input": {
            "delayFor": 3,
            "unit": "days"
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Primer recordatorio por email",
          "settings": {
            "pieceName": "@flooows/component-gmail",
            "pieceVersion": "~0.18.6",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "send_email",
            "input": {
              "receiver": [
                "{{trigger.customer_email}}"
              ],
              "subject": "Recordatorio de pago · {{trigger.number}}",
              "body_type": "plain_text",
              "body": "Hola, te recordamos que la factura {{trigger.number}} sigue pendiente. Puedes pagarla aquí: {{trigger.hosted_invoice_url}}"
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          },
          "nextAction": {
            "name": "step_3",
            "type": "PIECE",
            "valid": false,
            "skip": false,
            "displayName": "Esperar 7 días más",
            "settings": {
              "pieceName": "@flooows/component-delay",
              "pieceVersion": "~0.4.1",
              "pieceType": "OFFICIAL",
              "packageType": "REGISTRY",
              "actionName": "delayFor",
              "input": {
                "delayFor": 7,
                "unit": "days"
              },
              "inputUiInfo": {},
              "propertySettings": {},
              "errorHandlingOptions": {
                "retryOnFailure": {
                  "value": true
                },
                "continueOnFailure": {
                  "value": false
                }
              }
            },
            "nextAction": {
              "name": "step_4",
              "type": "PIECE",
              "valid": false,
              "skip": false,
              "displayName": "Segundo aviso por WhatsApp",
              "settings": {
                "pieceName": "@flooows/component-whatsapp",
                "pieceVersion": "~1.0.1",
                "pieceType": "OFFICIAL",
                "packageType": "REGISTRY",
                "actionName": "sendMessage",
                "input": {
                  "to": "{{trigger.customer_phone}}",
                  "text": "Te escribimos por la factura {{trigger.number}}, aún pendiente: {{trigger.hosted_invoice_url}}"
                },
                "inputUiInfo": {},
                "propertySettings": {},
                "errorHandlingOptions": {
                  "retryOnFailure": {
                    "value": true
                  },
                  "continueOnFailure": {
                    "value": false
                  }
                }
              },
              "nextAction": {
                "name": "step_5",
                "type": "PIECE",
                "valid": false,
                "skip": false,
                "displayName": "Llamada del agente de voz IA",
                "settings": {
                  "pieceName": "@flooows/component-lyria",
                  "pieceVersion": "~1.0.0",
                  "pieceType": "OFFICIAL",
                  "packageType": "REGISTRY",
                  "actionName": "outbound_ai_call",
                  "input": {
                    "to": "{{trigger.customer_phone}}",
                    "goal": "Recordar amablemente el pago de la factura {{trigger.number}} y anotar la fecha comprometida."
                  },
                  "inputUiInfo": {},
                  "propertySettings": {},
                  "errorHandlingOptions": {
                    "retryOnFailure": {
                      "value": true
                    },
                    "continueOnFailure": {
                      "value": false
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/plantillas/recordatorios-cobro-escalonados",
  "metadata": {
    "publisher": "flooows",
    "lang": "es",
    "setupMinutes": 10,
    "creditsPerRun": 3
  }
}