Skip to content

Conversation

@jay-sahnan
Copy link
Contributor

No description provided.

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]
Copy link
Member

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

Copy link
Contributor Author

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 = [
Copy link
Member

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

Copy link
Contributor Author

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")) {
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this even possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants