Use scoped document in auto pilot