エンタープライズグレードのAIエージェントの構築には、根本的なジレンマがあります。大規模言語モデル(LLM)は、自然な会話を得意としているものの、エンタープライズ規模のワークフローに必要な一貫性には欠けています。注文の詳細を伝える前に顧客の本人確認を行うように指示しても、LLMが毎回その手順を守るとは限りません。この問題は、従来のプロンプトエンジニアリングでは解決できません。プロンプトが長くなり、指示が増えると、AIエージェントの振る舞いが予測しにくくなることもあります。 Agent Script(英語)は、AIエージェントを構築するためのSalesforceの新しい言語です。Agent Scriptにはハイブリッド推論が導入されており、同じ命令ブロックの中で決定論的なコードと自然言語のプロンプトを組み合わせることができます。Agent Scriptを使えば、ビジネスに重要なロジックを毎回確実に実行しながら、柔軟な会話を維持できます。 Agent Scriptは、コンテキストエンジニアリングのためのツールでもあります。LLMが重要な情報をくみ取ることを漠然と期待するのではなく、変数、条件、会話の状態に応じて、LLMに渡すプロンプトをプログラムで組み立てられます。LLMは、その時点で必要な情報だけを参照します。 この記事では、Agent Scriptの基礎とAIエージェントの基本的な構成ブロックについて説明します。構文を学び、制御の流れを理解し、Agent Scriptが実行時にプロンプトを構築する仕組みを見ていきます。 Agent Scriptの基礎 AIエージェントの構築を始める前に、Agent Scriptの基本的な構文を押さえておきましょう。基本を理解しておくと、この後の記事の内容がわかりやすくなります。 プロパティベースの構文 Agent Scriptは、すべてkey: valueのペアで記述されます。読みやすい、宣言型の言語です。
Category: Trends
The Future of the Salesforce Developer in the Age of Agentic AI
Key Takeaways: AI isn’t replacing the Salesforce developer role. It’s reshaping it around three higher-value capabilities: system design,
The Future of the Salesforce Developer in the Age of Agentic AI
Key Takeaways: AI isn’t replacing the Salesforce developer role. It’s reshaping it around three higher-value capabilities: system design,
LWC + Apex Best Practices for Large Data Operations
Handling large volumes of data is a common requirement in real-world Salesforce implementations. As our orgs or business
Harness Lightning Experience Insights to Improve Performance
Salesforce is committed to continuously improving Lightning Experience performance for your orgs. Over the last few years, we
Agent Script Decoded: How to Debug Agent Script
You built an Agentforce agent with Agent Script. You test it—and something’s off. Maybe the agent routes to
getQueryLocator vs. Iterator in Apex
When you write a Batch class in Salesforce, the start method asks you a fundamental question: “How should
Salesforce Revenue Cloud Key Objects We Should Know
Revenue operations for our business will succeed when product catalog, sales, legal and finance teams share a single
Improved Accessibility Features in Salesforce Omnistudio
Have you ever built what you thought was a killer app, only to hear users say, “I can’t