Step 3: Simple Ability を持つ Agent を作成する
PDF generation ability を使用して AI agent を customize します
Agent Studio は custom AI agent の構築を開始する最も迅速な方法です。この tutorial では、この series の step 2で習得した skill を基に、PDF generation ability を持つ新しい agent を作成します。
構築するもの
- business summary または status report の PDF を生成する AI agent。
必要なもの
- この tutorial は、最初の functional AI agent を作成する この series の step 2 で習得した skill を基にしています。この tutorial を完了していない場合は、続行する前に完了してください。
- Squid Console の Squid account
新しい Agent を作成する
-
Squid Console で Agent Studio tab に移動します。
-
Create New Agent をクリックして agent を追加します。Agent ID と description の入力を求める window が表示されます。
- Agent ID:
pdf-agent。 - Description:
This is an agent for Squid AI's PDF tutorial
- Agent ID:
-
Create をクリックして agent を作成します。
agent を作成すると、新しい agent の Overview tab に redirect されます。
Agent に Instruction を指定する
agent に custom instruction を指定すると、unique persona を与えられます。これは PDF report を生成する business summary agent であるため、professional な方法で response し、information を効果的に summarize するよう agent を guide する instruction を指定します。
Your task is to generate a PDF that contains a business summary for a specified company.
Use both your general knowledge and any additional information given by the user to create this summary.
Use a professional tone in your reports and interactions with the user.
PDF Generation Ability
Squid AI は、PDF を生成する built-in ability、createPdfFromHtml を提供します。この ability を agent に追加するには、次の step に従います。
- agent の Overview tab で、Add Abilities button をクリックします。
- sidebar の AI Functions section まで scroll します
createPdfFromHtmlfunction に hover し、+ をクリックして agent に追加します。
これらの簡単な step により、agent は PDF を生成できるようになります!
Agent をテストする
PDF ability を追加した後、agent の Test Agent tab に移動します。この tab では agent と interaction し、user input への response を確認できます。
PDF の生成を依頼して agent を test します。
Generate a summary for Google.
Create a report on Walmart. Include information about the company's history, future outlook, and the current CEO.
これら 2 つの prompt により、agent は各 company の PDF report を生成します。agent は instruction を使用して professional summary を作成し、createPdfFromHtml ability を使用して PDF を生成します。agent は生成された PDF を download する link で response します。
追加 Instruction
ここまでで basic report を生成できる agent を構築しました。ただし、agent behavior を customize するためにできることはさらに多くあります。
たとえば、Overview tab に戻り、report に常に specific section を含めるよう agent に additional instruction を追加できます。
Always include the following sections in the business summary:
- Company Overview
- Financial Performance
- Future Outlook
- Leadership Team
PDF formatting を customize する additional instruction を指定することもできます。
Add 32px of margin around the PDF.
Use H2 headings for each section.
Set the font size to 12pt.
これらの instruction を追加した後、agent を test して、生成される PDF report に与える影響を確認してください。
次のステップ
おめでとうございます!PDF report を作成する AI agent を正常に作成しました。これで役立つ agent を作成・customize する方法の基本を理解できました。
-
Agent Studio onboarding series の次の tutorial に進む: AI Agent Workflow を作成する。
-
高度に customized された AI agent workflow を構築したいですか? Squid の SDK を使用して custom agent を作成するか、hands-on learning experience 向けの AI tutorialを確認してください。technical developer 専用。
-
質問がありますか? お問い合わせください!開始を喜んでお手伝いします。