Introduction: answer your question right away
If you're wonderinghow to design corporate automated workflowsthat maintain memory, execute actions securely, and adapt to evolving processes, the answer is to usestateful AI agentslike Letta, protected by sandbox-runtime and enhanced by optimized models like Underdog Saluki 27B. This practical guide shows you how to combine these current technologies to create robust, scalable automations.
Fundamentals of enterprise automation with AI agents
Traditional prompt-based scripts lose context after each run. Stateful AI agents retain persistent memory, allowing workflows to recall decisions, user details, and previous outcomes. This changes how businesses approach automation.
Why stateful memory matters
- Coherence:Agents remember customer details, order statuses, and analysis results across interactions.
- Personalization:Responses can be tailored based on conversation history.
- Error management:Correcting mistakes is easier when the agent can reference prior context.
Current tooling: Letta, sandbox-runtime, Saluki 27B
In the 2026 technology landscape, three components stand out:
- Letta
- Anthropic's sandbox runtime
- Underdog Saluki 27B
Building an enterprise copilot: step by step
1. Define the process scope
Start with a clear goal. For example, "Manage new customer onboarding by verifying identity, creating a profile, and assigning a project plan." Write this goal as a purpose statement that will guide prompt design.
2. Design the prompt with persistent context
Use Letta to store user state. A basic prompt might look like this:
def onboarding_prompt(customer_id, interactions):
memory = LettaClient().get_memory(customer_id)
system_msg = {
"role": "system",
"content": f"""You are an onboarding copilot. Remember: {memory}
Interactions so far: {interactions}"""
}
return [system_msg]The system maintains acore memory(key details) and ashort-term memory(recent interactions) for each customer.
3. Integrate sandbox-runtime for security and control
Configure a sandbox profile that limits the agent to required file and network paths. Example configuration:
sandbox_config = {
"allowed_paths": ["/data/customers/" + customer_id],
"network_rules": ["block_external", "allow_internal_api"],
"timeout_ms": 5000
}4. Optimize the model: use Saluki 27B with quantization
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
model = AutoModelForCausalLM.from_pretrained(
"underdog-saluki/Saluki-27B-tool-calling",
quantization_config=BitsAndBytesConfig(load_in_4bit=True),
device_map="auto"
)Practical workflow examples
Invoice management
Goal:Detect invoice anomalies and approve them automatically.
Prompt:
system_prompt = """
You are a billing management copilot. Check:
- amount > maximum threshold?
- due date approaching?
- payment method valid?
Remember the approval/rejection decision for each invoice.
"""Customer onboarding
Goal:Collect KYC documents, verify them, and create a profile.
Prompt:
system_prompt = """
You are a KYC onboarding assistant. Use memory to:
- store customer name and document numbers.
- verify each document against the checklist.
- record approval/rejection status.
"""Automated reporting
Goal:Generate weekly sales reports in PDF.
Prompt:
system_prompt = """
You are a report generator. Every Friday:
- retrieve sales data from the internal source.
- format the data into a PDF report.
- send the file via email to designated stakeholders.
"""Common mistakes and how to avoid them
- Neglecting memory persistence
- Inadequate sandbox restriction
- Using overly large models
- Overly generic prompts
Actionable takeaways
- Design your first enterprise agent using Letta: create a client, set up core memory, and test it with a simple prompt.
- Implement sandbox-runtime for every agent: start with a restrictive configuration and loosen rules only after security testing.
- Optimize the model: replace your current LLM with Saluki 27B quantized to reduce costs and improve speed.
- Document state: whenever an agent completes a task, record the outcome in core memory for future tracking.
- Iterate with feedback: collect performance data and refine the prompt and sandbox rules accordingly.
Conclusion
Designing enterprise automated workflows with stateful AI agents is no longer a luxury but a necessity to stay competitive in 2026. By combining Letta for persistent memory, sandbox-runtime for security, and optimized models like Saluki 27B, you can build reliable copilots that understand context, act responsibly, and adapt to evolving business processes. Start now with the steps above and transform your manual processes into intelligent, secure automations.
Conclusion:use these steps as an operational foundation, adapting tools, policies, and controls to your organization's real-world context.