Guides
In your agent pipeline
Make Artiwright the last step of the agents you already have. Your pipeline researches, analyzes and cites; Artiwright turns the answer into a deck or workbook.
Most teams that need documents already have agents that answer questions: they check the request, plan, retrieve, analyze and attach citations. What they don’t do is hand someone a deck. The Artiwright agent is built to be that last step: give it the finished answer, and it makes the file.
user ask → your checks → router → planner → retrieval → analysis → citations ─┬─▶ answer in chat └─▶ Artiwright agent ─▶ .pptx / .xlsxThe research is done before Artiwright starts, so its part is short: lay out the content, look at every slide, fix what lint finds and save. In our research-brief use case, a cited answer became a six-slide brief in about two minutes and eleven tool calls.
Hand over the answer
Section titled “Hand over the answer”Pass the request and the content together, in one message. Include the citations: the agent keeps them on the slides.
from google.adk.runners import Runnerfrom google.genai import typesfrom artiwright.adk import artiwright_agent
documents = artiwright_agent(root="/srv/artiwright-sessions", model=MODEL, skill="presentations")runner = Runner(app_name="briefs", agent=documents, session_service=sessions, artifact_service=artifacts)
request = ( "Turn this answer into a six-slide brief for Thursday's leadership meeting: the recommendation first, " "then the evidence. Use only the figures in the answer and keep its citations on each slide.\n\n" + cited_answer # what your analysis and citation steps produced)message = types.Content(role="user", parts=[types.Part(text=request)])async for event in runner.run_async(user_id=user_id, session_id=session_id, new_message=message): ... # the finished .pptx arrives as an ADK artifactskill="presentations" gives the agent only the deck instructions when it only makes decks. Leave the default for
workbooks, or pass both skills when it makes a model and a deck.
Or as a sub-agent
Section titled “Or as a sub-agent”In a multi-agent app, add the Artiwright agent to your router’s sub_agents and let the router send it the requests
for files, as in Google ADK: add it to your multi-agent setup.
With LangGraph, add Artiwright’s tools to the node that writes the final answer, or make it a separate node that runs
after it (LangGraph).
Keep it faithful
Section titled “Keep it faithful”- Say where the numbers come from. “Use only the figures in the answer” in the request is the strongest instruction you can give. Capable models keep every figure as given; see Choosing a model.
- Ask for the citations on the slides and the references on the last one, so the deck stays as traceable as the answer.
- Don’t trade the checks for speed. Rules like “build it in one step” or “don’t render” skip the passes that make a deck ready; see instructions that help, and ones that hurt.
- Keep your output checks. The deck is text too: run it through the same output scan as your chat answers before
you send the link.
artiwright_inspectreturns every slide’s text.