Complete example in automation docs