A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
The agent has the pricing. Now it needs to generate a PDF quote. We do not let the LLM write the HTML or format the document. That introduces too many sources of error. We use a strictly deterministic sub-workflow.
Build the document generation workflow
This video requires an access code. Enter your code below to unlock it instantly.
Don't have a code? Contact us to get access.
Import the provided quote tool workflow. It downloads an HTML template from GitHub. A Code node generates a unique quote ID and calculates the expiration date. A Merge node brings the template and the variables together.
A final Code node runs a regular expression to replace the placeholders in the HTML. The workflow commits the new file to a GitHub repository and returns a raw rendering URL back to the main agent.
Never return raw binary files (like PDFs) directly to the agent's memory buffer. The LLM cannot parse them. Always return a URL or a structured text summary.
Finish the lesson once you have worked through the material. This awards ★ 30 XP.