-
Notifications
You must be signed in to change notification settings - Fork 2
sales-oneliner #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| import { z } from "zod"; | ||
|
|
||
| // Domain to analyze - change this to target a different website | ||
| const targetDomain = "www.fabriodesign.com"; // Or extract from email: email.split("@")[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make this a relevant url like stagehand.dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
|
||
| // Patterns to detect placeholder/default pages that should return a generic response | ||
| // rather than attempting value prop extraction (avoids wasting LLM credits) | ||
| const unwantedPatterns = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this, super confusing to a new person
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
| }) | ||
| .catch(() => null); | ||
|
|
||
| if (generatorMetadata && generatorMetadata.toLowerCase().includes("go daddy")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing as above comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
| console.log(`🤖 Generating email one-liner for ${domain}...`); | ||
|
|
||
| const response = await stagehand.llmClient.createChatCompletion({ | ||
| logger: () => {}, // Suppress verbose LLM logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this even possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
No description provided.