{"generator":"https:\/\/jetFlow.io","version":"1.6.2","date_updated":"25 Sep 2020 13:12:26","date_export":"25 Sep 2020 13:12:31","flow":{"id":0,"name":"New team member notification via Slack (demo)","description":"Sends notification to Slack when a new user registers. Do not forget to specify \"Webhook URL\" in the \"Send Slack message\" action.","flow_status":"0","start_id":"294","config":"a:2:{s:13:\"logging_level\";i:5;s:8:\"validate\";i:1;}","restriction":"a:5:{s:5:\"roles\";b:0;s:10:\"authorized\";i:0;s:4:\"caps\";a:0:{}s:5:\"users\";a:0:{}s:2:\"IP\";a:0:{}}","group_id":"0","create_time":"1600783869","update_time":"1601039546","create_author":"2","update_author":"2","flow_hash":"","flow_checksum":"","version":"","css":"","last_start":"0.0000","last_start_sk":"","last_error":""},"actions":[{"id":0,"flow_id":0,"next_id":0,"class":"TR_UserAct","config":"a:4:{s:6:\"fields\";a:1:{s:8:\"activity\";a:2:{s:5:\"start\";s:13:\"user_register\";s:8:\"priority\";s:2:\"10\";}}s:6:\"parsed\";a:1:{s:8:\"activity\";a:2:{s:5:\"start\";i:0;s:8:\"priority\";i:0;}}s:12:\"extra_config\";a:0:{}s:11:\"description\";s:40:\"Start workflow when a new user registers\";}","wp_hook":"user_register","wp_hook_priority":"10","signature":"-"},{"id":0,"flow_id":0,"next_id":0,"class":"WF_SlackMsg","config":"a:4:{s:6:\"fields\";a:5:{s:9:\"slack_url\";s:79:\"https:\/\/hooks.slack.com\/services\/Q8S1APH3O\/Z528GX3J372\/lsQW41KkZvwlFxSkNsmvkRyd\";s:3:\"msg\";s:128:\"Hey team, please welcome a new member: {USER.first_name.} {USER.last_name}. For direct messages use the {USER.user_email} email.\";s:8:\"username\";s:7:\"jetflow\";s:7:\"channel\";s:0:\"\";s:10:\"icon_emoji\";s:12:\":robot_face:\";}s:6:\"parsed\";a:5:{s:9:\"slack_url\";i:0;s:3:\"msg\";i:3;s:8:\"username\";i:0;s:7:\"channel\";i:0;s:10:\"icon_emoji\";i:0;}s:12:\"extra_config\";a:0:{}s:11:\"description\";s:64:\"Send a message to a Slack channel. On any error generates false.\";}","wp_hook":"","wp_hook_priority":"0","signature":"-"},{"id":0,"flow_id":0,"next_id":0,"class":"WF_Break_If","config":"a:4:{s:6:\"fields\";a:4:{s:5:\"logic\";s:2:\"OR\";s:10:\"conditions\";a:1:{i:0;a:3:{s:8:\"operand1\";s:10:\"{PREVIOUS}\";s:8:\"operator\";s:1:\"0\";s:8:\"operand2\";s:4:\"true\";}}s:7:\"display\";s:0:\"\";s:6:\"return\";s:0:\"\";}s:6:\"parsed\";a:4:{s:5:\"logic\";i:0;s:10:\"conditions\";a:1:{i:0;a:3:{s:8:\"operand1\";i:1;s:8:\"operator\";i:0;s:8:\"operand2\";i:0;}}s:7:\"display\";i:0;s:6:\"return\";i:0;}s:12:\"extra_config\";a:0:{}s:11:\"description\";s:63:\"We stop here if the message has been successfully sent to Slack\";}","wp_hook":"","wp_hook_priority":"0","signature":"-"},{"id":0,"flow_id":0,"next_id":0,"class":"WF_GetOption","config":"a:4:{s:6:\"fields\";a:2:{s:6:\"option\";s:20:\"admin_email,blogname\";s:7:\"default\";s:0:\"\";}s:6:\"parsed\";a:2:{s:6:\"option\";i:0;s:7:\"default\";i:0;}s:12:\"extra_config\";a:0:{}s:11:\"description\";s:45:\"Retrieve the admin email and the website name\";}","wp_hook":"","wp_hook_priority":"0","signature":"-"},{"id":0,"flow_id":0,"next_id":0,"class":"WF_Send_Email","config":"a:4:{s:6:\"fields\";a:7:{s:4:\"from\";a:2:{s:4:\"name\";s:0:\"\";s:5:\"email\";s:0:\"\";}s:2:\"to\";s:22:\"{PREVIOUS.admin_email}\";s:7:\"subject\";s:74:\"An error occurred while sending a message via Slack on {PREVIOUS.blogname}\";s:4:\"body\";s:75:\"An error occurred while sending a message via Slack on {PREVIOUS.blogname}.\";s:11:\"attachments\";s:0:\"\";s:4:\"html\";s:1:\"1\";s:7:\"storage\";s:1:\"N\";}s:6:\"parsed\";a:7:{s:4:\"from\";a:2:{s:4:\"name\";i:0;s:5:\"email\";i:0;}s:2:\"to\";i:1;s:7:\"subject\";i:1;s:4:\"body\";i:1;s:11:\"attachments\";i:0;s:4:\"html\";i:0;s:7:\"storage\";i:0;}s:12:\"extra_config\";a:0:{}s:11:\"description\";s:63:\"If something goes wrong with Slack, we inform the website admin\";}","wp_hook":"","wp_hook_priority":"0","signature":"-"}]}==/3865/2795248204/EOF