Bird
Raised Fist0
Agentic AIml~10 mins

Content creation agent workflow in Agentic AI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize the content creation agent with a prompt.

Agentic AI
agent = ContentCreationAgent(prompt=[1])
Drag options to blanks, or click blank then click option'
ANone
B12345
CTrue
D"Write a blog post about AI"
Attempts:
3 left
💡 Hint
Common Mistakes
Using a number instead of a string for the prompt.
Leaving the prompt as None or True.
2fill in blank
medium

Complete the code to run the agent and get the generated content.

Agentic AI
result = agent.[1]()
Drag options to blanks, or click blank then click option'
Atrain
Bsave
Crun
Dload
Attempts:
3 left
💡 Hint
Common Mistakes
Using train() instead of run().
Trying to save or load before running.
3fill in blank
hard

Fix the error in the code to set the agent's content type correctly.

Agentic AI
agent.content_type = [1]
Drag options to blanks, or click blank then click option'
A"text"
BContentType.TEXT
Ctext
Dcontent_type.text
Attempts:
3 left
💡 Hint
Common Mistakes
Using undefined variables like text without quotes.
Using enums or attributes not defined in the context.
4fill in blank
hard

Fill both blanks to create a dictionary with content and metadata keys.

Agentic AI
output = {"content": [1], "metadata": [2]
Drag options to blanks, or click blank then click option'
Aresult
Bagent
C{}
DNone
Attempts:
3 left
💡 Hint
Common Mistakes
Using agent instead of result for content.
Using None instead of an empty dictionary for metadata.
5fill in blank
hard

Fill all three blanks to define a function that runs the agent and returns output.

Agentic AI
def create_content():
    [1] = ContentCreationAgent(prompt="Generate summary")
    [2] = agent.[3]()
    return [2]
Drag options to blanks, or click blank then click option'
Aagent
Bresult
Crun
Dcontent
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names like content instead of result.
Calling a method other than run().