Inspiration

When I joined my first large company, I spent hours digging through PDFs and intranet pages just to find simple answers—IT setup steps, PTO policies, even who to contact for building access. I knew other new hires were wasting the same time and losing momentum. I wanted a friendly guide—a single source of truth that “speaks company” in plain language—so every new employee feels confident from day one.

What it does

Dudebot ingests your organization’s HR policies, FAQs, and onboarding documents, then uses Einstein GPT to answer any new-hire question in natural language. Ask about vacation, benefits, IT setup, or workplace guidelines, and Dudebot instantly returns a concise answer with a reference to the original document.

How we built it

  1. Document Library & RAG
    • Uploaded policy PDFs and FAQ docs into Data Cloud’s Document Library for Retrieval-Augmented Generation.
  2. Agentforce Topic & Generative Action
    • Defined an “Onboarding” topic in Agent Builder with sample utterances and a prompt template that retrieves and summarizes the top two passages.
  3. Flow Orchestration
    • Created an Autolaunched Flow to capture user questions, invoke Dudebot, and display results in a Lightning Screen.
  4. Invocable Apex Fallbacks
    • Added Apex invocable methods for error handling and graceful “I’m not sure yet” responses.
  5. Lightning App Deployment
    • Embedded the chat component on a custom “Onboarding” Lightning App page for instant access.

Challenges we ran into

  • Session Context: Follow-up questions lost context. We solved it by persisting key variables (e.g., topic, last document) in Flow and reinforcing them in the prompt.
  • Document Noise: Large manuals returned irrelevant snippets. We tuned our RAG prompt to limit results to the two most relevant passages.
  • Governor Limits & Timeouts: Complex prompts sometimes timed out. We optimized SOQL filters, trimmed prompt lengths, and cached static answers.

Accomplishments that we’re proud of

  • Zero-Code Deployment: HR teams can update policies and FAQs without touching code—Dudebot auto-ingests new docs.
  • Trusted, Source-Backed Answers: Every response cites the exact document name, building confidence in accuracy.
  • Instant Time Savings: Onboarding queries that once took hours now resolve in seconds, freeing HR to focus on high-value tasks.

What we learned

  • RAG tuning is critical: precise prompts and passage limits dramatically improve answer relevance.
  • Agentforce’s low-code environment lets you combine generative AI with existing Salesforce logic seamlessly.
  • Effective error handling and fallback messaging are essential for a polished user experience.

What’s next for Dudebot – Your onboarding buddy

  • Conversational Chaining: Support deeper multi-step dialogs (e.g., “And how do I request equipment?” after an IT setup answer).
  • Multimedia Responses: Embed quick ‘how-to’ videos or step-by-step LWC walkthroughs for complex tasks.
  • Team-Specific FAQs: Personalize answers based on role or department (e.g., sales vs. engineering).
  • Analytics Dashboard: Track common questions to identify documentation gaps and further streamline onboarding.

Built With

  • einstein-gpt
  • salesforce-agentforce
  • soql
  • sosl
Share this project:

Updates