AI-powered automation scripting