> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runspark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Defining Your Processes

> Teach your agent complex business workflows through conversation

Your agent can run sophisticated, multi-step business processes autonomously — the kind of work that normally requires a team of people coordinating across tools. The key is defining these processes clearly through conversation, so your agent knows exactly what to do and when.

Think of it like onboarding a senior employee. You don't just say "handle operations." You walk them through your workflows, your standards, your decision criteria. The more specific you are, the more your agent can handle independently.

## How to Define a Process

The best way to teach your agent a complex workflow is through a structured conversation. Walk through each step, explain the decision points, and give examples of what good output looks like.

<Tabs>
  <Tab title="Example Conversation">
    > **You:** "I want you to run competitive intelligence for us. Every week, I need you to research our top 5 competitors, find any product updates they've announced, pricing changes, new hires in leadership, press mentions, and funding news. Cross-reference that against our product roadmap and flag anything that could impact our positioning. Compile it into a report with your recommendations on how we should respond."
    >
    > **Agent:** "Got it. I'll create a weekly competitive intel report. Let me confirm the process:
    >
    > 1. Research each competitor across their website, blog, press releases, social media, and job postings
    > 2. Identify: product launches, feature updates, pricing changes, leadership hires, funding rounds, partnerships, press coverage
    > 3. Cross-reference findings against our current roadmap and positioning
    > 4. Flag items that represent threats or opportunities
    > 5. Write recommendations for each significant finding
    > 6. Compile into a structured report
    >
    > Who are the 5 competitors? And what day/time do you want this delivered?"
    >
    > **You:** "Competitors are \[list]. Deliver every Monday at 8am. Also track any new companies entering our space — if you find a new player, add them to the watchlist and tell me about them."
  </Tab>

  <Tab title="What the Agent Does">
    Every Monday at 8am, your agent autonomously:

    1. Searches the web for each competitor's latest news, blog posts, product updates
    2. Checks job boards for leadership hires that signal strategic shifts
    3. Scans for funding announcements and partnership news
    4. Analyzes findings against your product roadmap (from knowledge files)
    5. Identifies emerging competitors entering the space
    6. Writes a comprehensive report with prioritized recommendations
    7. Saves it to your Work tab and sends you a notification

    No human involvement. Every week. Gets smarter as it learns what you find valuable.
  </Tab>
</Tabs>

## Enterprise-Grade Processes Your Agent Can Run

These aren't basic tasks — they're the kind of complex, multi-step operations that traditionally require dedicated team members or expensive software.

### Strategic Market Intelligence

> "Monitor our industry for regulatory changes, market trends, and emerging technologies. When you find something significant, assess the potential impact on our business, identify which departments are affected, and draft a briefing with recommended actions. Deliver a weekly digest and send immediate alerts for critical developments."

**What this replaces:** A market research analyst spending 10+ hours/week reading industry publications and compiling reports.

### Automated Due Diligence

> "When I give you a company name, run a comprehensive analysis. Pull their public financials, leadership team, recent news, product reviews, Glassdoor sentiment, technology stack, social media presence, and any legal issues. Cross-reference their claims against independent sources. Compile a due diligence report with risk flags and an overall assessment."

**What this replaces:** A team spending days assembling due diligence packages for every potential partner or acquisition target.

### Multi-Source Data Synthesis & Reporting

> "Every Friday, pull our sales data from Stripe, our marketing metrics from HubSpot, our support ticket volume from Zendesk, and our product usage from our database. Calculate week-over-week changes, identify trends, flag anomalies, and produce an executive dashboard report. If any metric drops more than 15% week-over-week, send me an immediate alert with a root cause analysis."

**What this replaces:** A data analyst manually pulling reports from 4 different tools and spending half a day building a weekly summary.

### Proactive Risk Monitoring

> "Continuously monitor for anything that could impact our operations. This includes: our competitors' pricing pages for changes, our domain's SSL certificate expiration, our app store reviews for negative trends, our social media mentions for PR risks, and industry news for regulatory changes that affect us. When you detect something, assess the severity, determine who needs to know, and alert me with context and recommended response."

**What this replaces:** Multiple monitoring tools, alert fatigue, and someone having to actually read and interpret all those signals.

### Intelligent Vendor Management

> "Track all our vendor contracts. Keep a database of renewal dates, terms, pricing, and performance notes. 60 days before any renewal, research current market alternatives, compare pricing, assess our usage patterns, and draft a negotiation brief with talking points. If we're overpaying relative to market rates, flag it immediately."

**What this replaces:** A procurement manager manually tracking spreadsheets and missing renewal windows.

### Content Strategy Execution

> "Develop and execute our content calendar. Research trending topics in our space, identify high-opportunity keywords, outline articles based on our expertise areas, draft the content in our brand voice, and prepare social media distribution plans for each piece. Track which topics drove the most engagement and adjust the strategy monthly."

**What this replaces:** A content strategist + writer + social media manager working together across multiple tools.

### Customer Health Scoring & Intervention

> "Analyze our customer base continuously. Cross-reference support ticket frequency, product usage patterns, billing history, and communication sentiment. Build a health score for each account. When a customer's health drops — increased support tickets, decreased usage, or negative sentiment — automatically draft a personalized outreach plan and alert the account manager with context on what's likely wrong and how to fix it."

**What this replaces:** A customer success team manually reviewing accounts and often catching churn signals too late.

### Recruitment Pipeline Automation

> "When I post a new role, research the market for typical compensation ranges, required qualifications, and where top candidates are likely to be found. Monitor our applicant pipeline, summarize each candidate's background against our requirements, flag standout candidates immediately, identify potential concerns, and prepare interview briefs. Track the pipeline metrics and alert me if we're not getting enough qualified applicants within the first two weeks."

**What this replaces:** Hours of recruiter time screening resumes and preparing for interviews.

### Operational Playbook Execution

> "When a critical system alert comes in, execute our incident response playbook. Assess the severity based on the alert data, determine which team members need to be notified based on the org chart and on-call schedule, draft the initial communication to stakeholders, start tracking the timeline, and compile all relevant diagnostic information. As updates come in, maintain the incident log and draft status updates."

**What this replaces:** Scrambling during incidents to figure out who to call and what to communicate.

## Best Practices for Defining Complex Processes

### Break It Into Phases

Don't try to define everything in one message. Start with the core workflow, then layer in edge cases and refinements:

<Steps>
  <Step title="Define the Happy Path">
    "Here's the basic process from start to finish..."
  </Step>

  <Step title="Add Decision Points">
    "If X happens, do Y instead. If the data shows Z, escalate to me."
  </Step>

  <Step title="Define Output Standards">
    "Reports should include an executive summary, key findings, data tables, and recommendations. Always lead with the most important finding."
  </Step>

  <Step title="Set Escalation Rules">
    "Handle routine items autonomously. Alert me for anything involving more than \$10K, legal risk, or public-facing communications."
  </Step>
</Steps>

### Give Your Agent Decision-Making Frameworks

The most powerful processes aren't rigid scripts — they give your agent the judgment to handle ambiguity:

> "When evaluating a vendor, use this framework: Weight price at 30%, feature fit at 40%, integration ease at 20%, and company stability at 10%. If the total score is above 80, recommend proceeding. Between 60-80, flag as 'worth considering with caveats.' Below 60, recommend passing."

### Define What "Done" Looks Like

> "A complete competitive analysis report includes: executive summary (3 sentences), threat assessment (high/medium/low for each competitor), opportunity matrix, recommended actions with priority and owner, and appendix with raw data sources. Save it as a document in the Work tab and send a notification with the executive summary."

### Set Boundaries

Your agent should know what it CAN'T do autonomously:

> "Never commit us to pricing or timelines with external parties. Never send external communications without my review. Never delete production data. If you're unsure about something, ask me rather than guessing."

## Iterating Over Time

Your processes will evolve. After your agent runs a workflow a few times:

1. **Review the output** — Is it what you expected? What's missing?
2. **Give feedback** — "The report was good but I need more detail on pricing comparisons"
3. **Refine the rules** — "When you see a competitor launch a feature we already have, lead with how ours is different, not just that they launched"
4. **Add edge cases** — "If a competitor goes silent for more than a month, flag that separately — they might be in stealth mode on something big"

Your agent incorporates this feedback into its instructions. Each iteration makes the process tighter and the output more valuable.

<Tip>
  The best-performing agents are the ones whose owners spend the first week actively teaching and refining processes, then gradually step back as the agent proves it can handle things independently. Think of it as an investment — a few hours of process definition pays off in hundreds of hours of autonomous work.
</Tip>
