diff --git a/examples/dev-screener/README.md b/examples/dev-screener/README.md index 99f1f214..a1a969a6 100755 --- a/examples/dev-screener/README.md +++ b/examples/dev-screener/README.md @@ -34,22 +34,14 @@ To get started with Langbase, you'll need to [create a free personal account on 4. `cd` into the project directory and open it in your code editor. 5. Duplicate the `.env.example` file in this project and rename it to `.env.local`. 6. Add the following environment variables (.env.local): - -``` - # Replace `PIPE_API_KEY` with the copied API key. - NEXT_LB_PIPE_API_KEY="PIPE_API_KEY" -``` - 7. Run the following commands in your CLI: - ```sh # Install the dependencies using the following command: npm install # Run the project using the following command: npm run dev -``` - +``` 8. Your app template should now be running on [localhost:3000][local]. > NOTE: diff --git a/examples/dev-screener/components/chatbot-page.tsx b/examples/dev-screener/components/chatbot-page.tsx index 80203378..1c37ffe3 100755 --- a/examples/dev-screener/components/chatbot-page.tsx +++ b/examples/dev-screener/components/chatbot-page.tsx @@ -7,6 +7,7 @@ import { useState } from 'react' import { toast } from 'sonner' import { ChatInput } from './chat-input' import { Opening } from './opening' +import { Suggestions } from './suggestions' export interface ChatProps extends React.ComponentProps<'div'> { id?: string // Optional: Thread ID if you want to persist the chat in a DB @@ -31,6 +32,11 @@ export function Chatbot({ id, initialMessages, className }: ChatProps) { setThreadId(lbThreadId) } }) + + const sendSuggestedPrompt = (prompt: string) => { + setInput(prompt) + } + return (
@@ -39,7 +45,10 @@ export function Chatbot({ id, initialMessages, className }: ChatProps) { ) : ( - + <> + + + )}
{ @@ -49,9 +50,20 @@ export function PromptForm({ className="text-muted-foreground/50 h-5 w-5" aria-hidden="true" /> -

Chat

+

Ask

+ + + + + +
    +
  • Say hello to start a guided conversation.
  • +
  • DevScreener provides a demo to help determine if there is a match between the candidate's profile and the company's position goals.
  • +
  • The conversation with DevScreener includes multiple-choice questions (MCQs) and experience-related questions for the candidate to answer.
  • +
+
+
-
{/* Reset chat */}