Apple has acquired Workflow, an automation tool for iPad and iPhone – https://techcrunch.com/2017/03/22/apple-has-acquired-workflow-a-powerful-automation-tool-for-ipad-and-iphone/