<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
	<id>https://www.insurerbrain.com/w/index.php?action=history&amp;feed=atom&amp;title=Bot%3AGuide%2Fapproved_services%2Fget_PDF</id>
	<title>Bot:Guide/approved services/get PDF - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.insurerbrain.com/w/index.php?action=history&amp;feed=atom&amp;title=Bot%3AGuide%2Fapproved_services%2Fget_PDF"/>
	<link rel="alternate" type="text/html" href="https://www.insurerbrain.com/w/index.php?title=Bot:Guide/approved_services/get_PDF&amp;action=history"/>
	<updated>2026-04-09T02:47:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.insurerbrain.com/w/index.php?title=Bot:Guide/approved_services/get_PDF&amp;diff=21441&amp;oldid=prev</id>
		<title>Wikilah admin: Created page with &quot;== Workflow: Get PDF ==  This guide outlines the execution steps and logic for the &quot;Get PDF&quot; service. The AI agent must follow these instructions strictly to fulfill the user&#039;s request.  === Required parameters === * &lt;code&gt;page_title&lt;/code&gt; (string): The requested MediaWiki page name, extracted from the user&#039;s email.  === Available tools === * &lt;code&gt;validate_or_find_closest_page(page_title)&lt;/code&gt;: Checks the wiki to see if the page exists. Returns a JSON object with the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.insurerbrain.com/w/index.php?title=Bot:Guide/approved_services/get_PDF&amp;diff=21441&amp;oldid=prev"/>
		<updated>2026-03-25T15:05:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Workflow: Get PDF ==  This guide outlines the execution steps and logic for the &amp;quot;Get PDF&amp;quot; service. The AI agent must follow these instructions strictly to fulfill the user&amp;#039;s request.  === Required parameters === * &amp;lt;code&amp;gt;page_title&amp;lt;/code&amp;gt; (string): The requested MediaWiki page name, extracted from the user&amp;#039;s email.  === Available tools === * &amp;lt;code&amp;gt;validate_or_find_closest_page(page_title)&amp;lt;/code&amp;gt;: Checks the wiki to see if the page exists. Returns a JSON object with the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Workflow: Get PDF ==&lt;br /&gt;
&lt;br /&gt;
This guide outlines the execution steps and logic for the &amp;quot;Get PDF&amp;quot; service. The AI agent must follow these instructions strictly to fulfill the user&amp;#039;s request.&lt;br /&gt;
&lt;br /&gt;
=== Required parameters ===&lt;br /&gt;
* &amp;lt;code&amp;gt;page_title&amp;lt;/code&amp;gt; (string): The requested MediaWiki page name, extracted from the user&amp;#039;s email.&lt;br /&gt;
&lt;br /&gt;
=== Available tools ===&lt;br /&gt;
* &amp;lt;code&amp;gt;validate_or_find_closest_page(page_title)&amp;lt;/code&amp;gt;: Checks the wiki to see if the page exists. Returns a JSON object with the status (exact_match, closest_match, or not_found) and the resolved page title.&lt;br /&gt;
* &amp;lt;code&amp;gt;generate_and_send_pdf(resolved_title)&amp;lt;/code&amp;gt;: Generates a PDF of the specified wiki page and attaches it to an email reply in the current thread.&lt;br /&gt;
&lt;br /&gt;
=== Execution steps ===&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Validate the page:&amp;#039;&amp;#039;&amp;#039; Execute the &amp;lt;code&amp;gt;validate_or_find_closest_page&amp;lt;/code&amp;gt; tool using the extracted &amp;lt;code&amp;gt;page_title&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Evaluate the validation status and act:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;If exact_match:&amp;#039;&amp;#039;&amp;#039; Execute &amp;lt;code&amp;gt;generate_and_send_pdf&amp;lt;/code&amp;gt; using the resolved title. Draft a polite, concise email confirming the requested PDF is attached.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;If closest_match:&amp;#039;&amp;#039;&amp;#039; Execute &amp;lt;code&amp;gt;generate_and_send_pdf&amp;lt;/code&amp;gt; using the new resolved title. Draft an email explaining that you couldn&amp;#039;t find the exact page they asked for, but you have attached the closest match. Politely ask them to check the spelling if this is not the document they needed.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;If not_found:&amp;#039;&amp;#039;&amp;#039; Do NOT attempt to generate a PDF. Draft a polite email stating that the page and any close variations could not be found, and ask the user to double-check their spelling.&lt;/div&gt;</summary>
		<author><name>Wikilah admin</name></author>
	</entry>
</feed>