extracting instructions from the response.