TIA Framework Deep Dive — Topics Instructions Actions | Agentforce 2026
The TIA Framework
Deep Dive
Master the three pillars of Agentforce agent design: Topics (now Subagents), Instructions, and Actions. Learn when to use multiple Subagents, write production-quality Instructions, and understand all 4 Action types with real code examples.
Part 1: Subagents (T) — Design Patterns
When to use 1, 2, or many Subagents. Routing strategy. Classification Descriptions.
— No need to distinguish between user request types
— Simple use case: data lookup, email drafting, status checks
— Learning phase (Module 4 XYZ Sales Assistant starts here)
Single Subagent: Support Handler
Classification: “Handles all customer support inquiries: case creation, status lookup, escalation requests”
Why Single? Every message is a support request. No need to distinguish categories.
— Different routing logic per type
— Different guardrails per type
— Example: Sales + Support in one agent (different instructions)
Subagent 1: Sales Handler
Classification: “Handles: opportunity lookup, account details, sales pipeline status, competitive intel, follow-up email drafts”
Instructions: “Always show amounts in INR. Escalate pricing decisions. Respect customer privacy.”
Subagent 2: Support Handler
Classification: “Handles: customer complaint lookup, case creation, SLA status, escalation to account manager”
Instructions: “Always prioritize customer satisfaction. Empathetic tone. Escalate angry customers immediately.”
Why 2 Subagents? Sales & Support have different instructions, different escalation rules, different guardrails. One agent, two specialized behaviors.
| Subagent | Request Types | Instructions Focus | Escalation Path |
|---|---|---|---|
| Sales Handler | Opportunity status, Account info, Competitive, Email drafts | Professional, Revenue-focused, Secure | Sales Manager |
| Support Handler | Case lookup, Complaints, SLA check, Account help | Empathetic, Fast resolution, Ownership | Support Lead |
— Each category needs separate Instructions & escalation
— Risk: Too many Subagents = confused routing (AI can’t decide which to use)
— Expert tip: Keep Classification Descriptions VERY specific if using 4+
Subagent 2: Risk Analyst — Fraud checks, compliance questions, regulatory inquiries
Subagent 3: Customer Service — Account status, transaction history, billing disputes
Subagent 4: Collections — Payment reminders, delinquency status, repayment plans
Why 4? Each has different guardrails (Risk uses legal language, Loan uses financial terms, Collections has empathy rules). One agent would be too generic.
Part 2: Instructions (I) — Behavioral Rules
Writing production-quality Instructions. Do’s, don’ts, guardrails, tone.
| Category | Purpose | Example Instruction |
|---|---|---|
| 1. Tone & Personality | How agent sounds | “Be professional but approachable. Use customer names when available. Show genuine interest in their success.” |
| 2. Data Format & Presentation | How to show information | “Always show Opportunity amounts in Indian Rupees (“₹1,500,000”). Show dates in DD-MMM-YYYY format. Break into bullets for readability.” |
| 3. Scope & Boundaries | What agent handles, what to escalate | “Handle data lookup & email drafts. DO NOT make pricing decisions. Escalate any negotiation to Sales Manager. DO NOT give legal advice.” |
| 4. Privacy & Compliance | Data protection rules | “Never share one customer’s info with another. Mask PII in team emails. Never retain customer data after conversation ends.” |
| 5. Context & Company Info | Agent knowledge base | “XYZ Company: pharma-grade silicone manufacturer. Founded 1998. Top 3 customers: ABC Pharma, MedTech, BioLife. Key products: tubing, O-rings, gaskets.” |
| 6. Error Handling | When agent doesn’t know | “If information not found, say so clearly. Never guess or make up data. Offer to connect with manager for research.” |
| 7. Follow-Up | Keep conversation going | “Always end with a helpful follow-up question. Example: “Would you like me to draft an email to this account?” |
“Answer questions” (which questions?)
Part 3: Actions (A) — All 4 Types
Standard Actions, Flows, Apex, and REST APIs. When to use each. Real code examples.
| Standard Action | What It Does | Inputs | Outputs | Use Case |
|---|---|---|---|---|
| Get Record | Fetch a single record by ID or field | Object name, Record ID or field value | All record fields | Account lookup, Opportunity details |
| Query Records | SOQL query to fetch multiple records | SOQL query string | List of records | Open opportunities, Recent cases |
| Create Record | Create new record | Object name + required fields | New record ID | Case creation, Lead generation |
| Update Record | Modify existing record | Record ID + fields to update | Success/failure | Stage change, close opportunity |
| Send Email | Send email to user(s) | To, Subject, Body | Email tracking ID | Follow-up emails, notifications |
| Create Task | Assign task to user | Subject, Due Date, Assigned To | Task ID | Reminders, follow-ups |
Type: Get Record (Standard)
Input: Account Name = “ABC Pharma”
Output: Account ID, Industry (Healthcare), Location (Mumbai), Phone, Contact Person, Annual Revenue
Used By: “Tell me about ABC Pharma” user request
Flow Logic (Visual):
1. Input: Account Name
2. Query Accounts: GET Account WHERE Name = input
3. Query Opportunities: GET Opps WHERE AccountId = result & StageName NOT IN (Closed Won, Closed Lost)
4. Loop through each Opp: Calculate days open, check SLA status
5. Sort by probability (high to low)
6. Output: List of open Opps with status, days open, SLA
Why Flow? Needs looping & conditional logic. Standard “Get Record” can’t do this. Query Action is simpler, but if we need post-processing (calculate days, check SLA) — Flow is better.
Method: calculateWinProbability(opportunityId)
Logic:
— Fetch Opportunity & Account
— Check: Days in current stage, Days since last activity, Customer history (repeat buyer?)
— AI Model: Use historical data to predict win probability
— Output: Calculated probability (0-100%), Risk factors, Recommended actions
Why Apex? AI-powered prediction logic. Can’t do in Flow. Apex can call ML models, integrate with external services, perform complex calculations.
Type: REST API Call
Endpoint: POST https://xyzcompany.service-now.com/api/now/table/incident
Headers: Authorization: Bearer [ServiceNow API Token]
Input: Customer Email
Query: Find incidents for this email
Output: Incident ID, Status, Priority, Assigned To, Last Update
Use Case: “I have an incident open with you guys. What’s the status?” — Agent calls ServiceNow API, gets real-time ticket info, responds to customer.
| Action Type | Complexity | Speed | Best For | Avoid If |
|---|---|---|---|---|
| Standard | Low | Fast | Simple CRUD, email, basic queries | Complex logic, multi-step processes |
| Flow | Medium | Medium | Visual workflows, loops, conditionals | High-performance tasks, real-time demands |
| Apex | High | Fast | Complex logic, AI predictions, performance-critical | Simple operations (overkill), no error handling needed |
| REST API | Medium-High | Variable | Third-party integrations, external data | Simple Salesforce operations (use Standard instead) |
1. Standard Action? Use it (simplest, fastest)
2. Flow needed? Build Flow (visual, maintainable)
3. Apex only if Flow not enough (powerful but requires coding)
4. REST API only if data outside Salesforce (external integration)
TIA Framework — Interview Questions & Answers
Real questions from Agentforce developer & architect interviews
| Interview Question | Best Answer |
|---|---|
| Explain the TIA Framework | T = Subagents (routing by classification), I = Instructions (behavioral rules), A = Actions (tasks agent performs). Agents route user messages to correct Subagent — Subagent reads Instructions — calls appropriate Actions to accomplish the task. |
| When would you use multiple Subagents vs. single Subagent? | Single: One clear job (e.g., data lookup only). Multiple (2-3): Distinct request types needing different Instructions & escalation (e.g., Sales & Support). 4+: Enterprise, each domain is its own specialty. Risk: Too many Subagents confuse routing. |
| What makes a good Classification Description? | Specific, actionable, lists concrete request types. Example: "Handles opportunity status, account details, competitive intel, email drafting. Does NOT handle: pricing negotiation (escalate to manager), support complaints (route to Support Subagent)." Vague descriptions lead to poor routing. |
| What should production Instructions include? | 1. Tone & personality 2. Data format & presentation 3. Scope & escalation 4. Privacy & compliance 5. Company knowledge 6. Error handling 7. Follow-up. Keep concise (200-400 words). Specific, not vague. |
| When do you use Standard Actions vs. Flows vs. Apex? | Standard Actions: Simple CRUD & queries (fastest). Flows: Complex logic with loops & conditionals (maintainable). Apex: Performance-critical, AI predictions, or when Flow not enough (powerful but requires coding). REST APIs: External system integration (data outside Salesforce). |
Module 5 Summary — TIA Framework Mastered
What you know now
- ✅Subagent Design Patterns: Single, 2-3 multi, 4+ enterprise. Classification Descriptions (specific, actionable). Routing strategy.
- ✅Production Instructions: 7 categories (Tone, Data Format, Scope, Privacy, Knowledge, Error, Follow-up). Template provided. 200-400 words, specific not vague.
- ✅Action Type 1 (Standard): Get, Query, Create, Update, Send Email. No code. Fast. For simple CRUD.
- ✅Action Type 2 (Flow): Visual workflows. Loops, conditionals, multi-step. No code. Maintainable.
- ✅Action Type 3 (Apex): Custom code. Complex logic. AI predictions. Performance-critical. When Flow not enough.
- ✅Action Type 4 (REST API): External integrations. ServiceNow, Jira, custom APIs. Data outside Salesforce.
- ✅Action Selection Rule: Standard first — Flow second — Apex third — REST API for external systems.
🚀 Ready for Module 6?
Next: Prompt Builder — Create Reusable Prompt Templates You'll learn how to build prompt templates in Prompt Builder, make them grounded in Salesforce data, and invoke them from Actions. This is where AI gets DATA-AWARE!
Module 6: Prompt Builder —
New interview questions every week
Follow for fresh Salesforce Q&A, free courses, and real interview experiences — straight from the trenches.
Follow Us ↗1,500+ free questions, kept free thanks to readers like you.
Help Us Keep This Free →