Mini-project: Multimodal content studio pipeline

Chain specialized stages into one reproducible studio workflow

Combine the mental models of this course in one clean AgentFlow: (1) intake extracted text from OCR/Vision, (2) expand into a cited research brief, and (3) produce clean plain-text narration script ready for AudioAgent.speech().

Example

from praisonai import Agent, AgentFlow

def strip_markdown_for_tts(ctx):
    return ctx.previous_result.replace('*', '').replace('#', '').strip()

intake = Agent(name='OCRIntake', instructions='Summarize the extracted PDF highlight in one sentence.', output='silent')
narrator = Agent(name='BriefWriter', instructions='Turn the summary into one warm spoken sentence with no markdown.', output='silent')
studio = AgentFlow(steps=[intake, narrator, strip_markdown_for_tts])
print('TTS-ready:', studio.start('PDF slide: Q4 latency dropped 42% and local Ollama support is GA.')['output'])

Try it Yourself

Example explained

  • strip_markdown_for_tts — Deterministic Python transform ensuring AudioAgent never reads markdown symbols aloud.
  • AgentFlow(steps=[…]) — Connects specialized multimodal intake, writing, and audio prep cleanly.

Next course: AgentFlow

You just built a 3-step studio pipeline. Open AgentFlow next to master routing, parallel fan-out, loops, shared WorkflowContext state, and error handling.

Reference: documentation