{
  "name": "Form lead to CRM with a Slack alert",
  "description": "Each response becomes a contact and a deal, and the assigned rep gets notified.",
  "tags": [
    "Sales"
  ],
  "pieces": [
    "@flooows/component-typeform",
    "@flooows/component-hubspot",
    "@flooows/component-slack"
  ],
  "template": {
    "displayName": "Form lead to CRM with a Slack alert",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "New form response",
      "settings": {
        "pieceName": "@flooows/component-typeform",
        "pieceVersion": "~0.7.1",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "new_submission",
        "input": {},
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Create the contact in HubSpot",
        "settings": {
          "pieceName": "@flooows/component-hubspot",
          "pieceVersion": "~0.13.2",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "create-contact",
          "input": {
            "objectProperties": {
              "email": "{{trigger.email}}",
              "firstname": "{{trigger.name}}",
              "company": "{{trigger.company}}"
            }
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Create the related deal",
          "settings": {
            "pieceName": "@flooows/component-hubspot",
            "pieceVersion": "~0.13.2",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "create-deal",
            "input": {
              "dealname": "Lead web · {{trigger.company}}"
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          },
          "nextAction": {
            "name": "step_3",
            "type": "PIECE",
            "valid": false,
            "skip": false,
            "displayName": "Notify the sales rep in Slack",
            "settings": {
              "pieceName": "@flooows/component-slack",
              "pieceVersion": "~0.23.1",
              "pieceType": "OFFICIAL",
              "packageType": "REGISTRY",
              "actionName": "send_channel_message",
              "input": {
                "text": "Nuevo lead: {{trigger.name}} ({{trigger.company}}) · {{trigger.email}}"
              },
              "inputUiInfo": {},
              "propertySettings": {},
              "errorHandlingOptions": {
                "retryOnFailure": {
                  "value": true
                },
                "continueOnFailure": {
                  "value": false
                }
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/en/templates/form-lead-to-crm-slack-alert",
  "metadata": {
    "publisher": "flooows",
    "lang": "en",
    "setupMinutes": 5,
    "creditsPerRun": 1
  }
}