cloning intro_to_pipeline for media chat