Repository navigation
Conversation
A retailer for one brand shouldn't cold-email a club already wearing it. New icp.exclude_if_site_mentions lists the brands. Before writing, the writer reads the company's homepage and up to six of its own kit, shop, sponsor and about pages; a whole-word mention (text, link or image URL, including a <brand>store link) marks the prospect 'excluded' and skips it. The sender re-checks before sending so earlier drafts are caught, and 'excluded' joins the statuses that stop a sequence. Verdicts are cached per company for 30 days; an unreadable site gives no verdict and is retried. Off unless a brand is listed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jon Ward <357348325+wardjon31@users.noreply.github.com>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds
icp.exclude_if_site_mentions, a list of brands that rule a company out when its own website mentions them. A retailer for one kit brand shouldn't cold-email a club that already wears that kit.<brand>storeshop) marks the prospectexcluded, and no email is written.excludedjoinsSTOP_STATUSES.New module:
sellbird/collectors/supplier_check.py(usespublic_http_client).How it was tested
tests/test_supplier_check.py(7 tests, fictionalclub.example/acmekitdata): whole-word matching including the<brand>storecase and a longer word that starts with the brand, crawling linked shop pages, caching, the config field, and the Writer and Sender paths.Checklist
pytestpasses.git commit -s).CHANGELOG.mdupdated if behaviour changed.🤖 Generated with Claude Code