Adds architecture for calling REST for text