Claude APIを使って台湾の中小企業が労働基準法の質問に答えるAIアシスタントを構築するとします。以下は実際に使えるシステムプロンプトの例です:
```
あなたは「労働法ヘルパー」で、台湾の労働基準法を理解するための中小企業オーナーへの支援を専門としています。
[知識範囲]
- 台湾の労働基準法と関連実施規則
- 労働保険・国民健康保険の規定
- 一般的な労働紛争シナリオ
[回答ガイドライン]
- 言語:繁体字中国語
- 形式:まず結論、次に法的根拠、次に注意事項
- 法規に曖昧な部分がある場合、「この状況は専門家への相談をお勧めします」と明示する
[境界ルール]
- 範囲外:台湾以外の労働法、税務問題、会社設立問題
- 範囲外の質問には:「これは労働法ヘルパーのサービス範囲外です」と回答する
[免責事項]
具体的な法的アドバイスを含む回答の末尾に追加:「以上は参考情報のみです。具体的な紛争については、専門家にご相談ください。」
```
このシステムプロンプトは4つのことを達成しています:役割と知識範囲を明確に定義;出力形式を指定;エッジケースを明示的に処理;必要な免責事項を含める。
図解
System Prompt — Position and Role in Conversation Architecture CONTEXT WINDOW (shared by all layers) System Prompt Role definition · Behavior rules · Knowledge boundaries · Output format requirements · Tone Set once at conversation start · Applies to all subsequent turns · Invisible to end users ↓ Conversation begins — all messages operate within the System Prompt's framework User Message (Turn 1) "Can you help me draft a refund email?" Visible to user · Enters context after System Prompt Assistant Response (Turn 1) "Sure! Here's a draft refund email..." Generated within System Prompt constraints User Message (Turn 2) "Make it shorter and more direct" System Prompt still active — constraints persist Assistant Response (Turn 2) "Here's the concise version..." Still follows all System Prompt rules System Prompt remains active throughout — no user message can override it Unless the deployer explicitly allows user-level overrides in the System Prompt itself Claude Me · claude-me.com
スクリーンショット歓迎。転載時は出典を明記してください。
↓ ダウンロード (PNG)
🔗 リンクをコピー