René's URL Explorer Experiment


Title: feat(apify): add Apify lead research example by Jakub-Vacek · Pull Request #153 · triggerdotdev/examples · GitHub

Open Graph Title: feat(apify): add Apify lead research example by Jakub-Vacek · Pull Request #153 · triggerdotdev/examples

X Title: feat(apify): add Apify lead research example by Jakub-Vacek · Pull Request #153 · triggerdotdev/examples

Description: Pre-agreed with the Trigger.dev team on Discord: https://discord.com/channels/1066956501299777596/1534928934184157205 What A new example, apify-lead-research: a sales lead research desk that runs Apify Actors three ways. discover-leads: scheduled Google Maps scrape. run-actor starts the Actor with an ad-hoc webhook on a wait token, so the run suspends until Apify calls back on any terminal event. maxTotalChargeUsd and maxItems cap spend, and an aborted run still returns the leads scraped so far. enrich-lead: a blocking Website Content Crawler run (too short to bother suspending), then the model extracts contacts and a summary. A queue caps it at 2 crawls so it stays under the account memory limit. research-agent: a chat.agent with Apify Store search, input-schema, and run tools. runApifyActor has needsApproval: true, and the Next.js UI (useTriggerChatTransport + useChat, Apify dark theme) shows Approve and Deny for every paid run. Output is trimmed for context, with the datasetId for the rest. The README covers when to use each pattern, setup, and a sample payload per task. Testing Typechecked and built against @trigger.dev/sdk 4.7.3 and apify-client 2.25.0, and every task ran against a live Apify account in dev: discover-leads (coffee roastery | Prague, Czechia) returned leads and fanned out to enrich-lead. Compute was 1.9 s of about 80 s, suspended on wait.forToken(). enrich-lead: 5 parallel runs returned emails, phones, and social profiles on the first attempt. run-actor: aborting mid-run returned the partial dataset with status: ABORTED. research-agent in the browser: approve, deny (the agent tried another approach), and all three suggested prompts completed. Blocked by: triggerdotdev/trigger.dev#5021 and triggerdotdev/trigger.dev#5020

Open Graph Description: Pre-agreed with the Trigger.dev team on Discord: https://discord.com/channels/1066956501299777596/1534928934184157205 What A new example, apify-lead-research: a sales lead research desk that runs A...

X Description: Pre-agreed with the Trigger.dev team on Discord: https://discord.com/channels/1066956501299777596/1534928934184157205 What A new example, apify-lead-research: a sales lead research desk that runs A...

Opengraph URL: https://github.com/triggerdotdev/examples/pull/153

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:da625ed5-6bd6-6d79-546c-b3faf4c23201
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id924E:1257F:3485F6:49EBCB:6AFB71CD
html-safe-nonce25f6b714d924c8b6b3392b93a0026fc634c1d8933c17959dd54823dafeab01ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjRFOjEyNTdGOjM0ODVGNjo0OUVCQ0I6NkFGQjcxQ0QiLCJ2aXNpdG9yX2lkIjoiODEyMTQ2MzQ5MjcwNDk1Njg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbba79374e4de5fd557656749fdb90db88f0acf4917d16823bab3a64cfda2ba4b
hovercard-subject-tagpull_request:4830452244
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/examples/pull/153/files
twitter:imagehttps://avatars.githubusercontent.com/u/21127441?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/21127441?s=400&v=4
og:image:altPre-agreed with the Trigger.dev team on Discord: https://discord.com/channels/1066956501299777596/1534928934184157205 What A new example, apify-lead-research: a sales lead research desk that runs A...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/examples git https://github.com/triggerdotdev/examples.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id845543643
octolytics-dimension-repository_nwotriggerdotdev/examples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id845543643
octolytics-dimension-repository_network_root_nwotriggerdotdev/examples
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/examples/pull/153/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Fexamples%2Fpull%2F153%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Fexamples%2Fpull%2F153%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Fexamples
Reloadhttps://github.com/triggerdotdev/examples/pull/153/files
Reloadhttps://github.com/triggerdotdev/examples/pull/153/files
Reloadhttps://github.com/triggerdotdev/examples/pull/153/files
triggerdotdevhttps://github.com/triggerdotdev
exampleshttps://github.com/triggerdotdev/examples
Codehttps://github.com/triggerdotdev/examples
Issueshttps://github.com/triggerdotdev/examples/issues
Pull requests45 (45)https://github.com/triggerdotdev/examples/pulls
Actionshttps://github.com/triggerdotdev/examples/actions
Projectshttps://github.com/triggerdotdev/examples/projects
Security and qualityhttps://github.com/triggerdotdev/examples/security
Insightshttps://github.com/triggerdotdev/examples/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Fexamples%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Fexamples%2Fissues%2Fnew%2Fchoose
Jakub-Vacekhttps://github.com/Jakub-Vacek
triggerdotdev:mainhttps://github.com/triggerdotdev/examples/tree/main
apify:feat/737-apify-lead-research-examplehttps://github.com/apify/trigger.dev-apify-examples/tree/feat/737-apify-lead-research-example
Conversation 1 https://github.com/triggerdotdev/examples/pull/153
Commits 3 https://github.com/triggerdotdev/examples/pull/153/commits
Checks 0 https://github.com/triggerdotdev/examples/pull/153/checks
Files changed https://github.com/triggerdotdev/examples/pull/153/files
Please reload this pagehttps://github.com/triggerdotdev/examples/pull/153/files
feat(apify): add Apify lead research example https://github.com/triggerdotdev/examples/pull/153/files#top
Show all changes 3 commits https://github.com/triggerdotdev/examples/pull/153/files
afe905b feat(apify): add Apify lead research example daveomri Oct 12, 2026 https://github.com/triggerdotdev/examples/pull/153/commits/afe905b459828e07ab469fc2bc6eeee2f948db64
b955215 refactor(apify): use Anthropic instead of OpenRouter daveomri Oct 12, 2026 https://github.com/triggerdotdev/examples/pull/153/commits/b955215e525298aaff9dbb18ac951d25df3a4226
08274ed Merge branch 'main' into feat/737-apify-lead-research-example daveomri Oct 27, 2026 https://github.com/triggerdotdev/examples/pull/153/commits/08274ed0dd0363bb1a5400f863e6e571757ff4b9
Clear filters https://github.com/triggerdotdev/examples/pull/153/files
Please reload this pagehttps://github.com/triggerdotdev/examples/pull/153/files
Please reload this pagehttps://github.com/triggerdotdev/examples/pull/153/files
README.md https://github.com/triggerdotdev/examples/pull/153/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
.env.example https://github.com/triggerdotdev/examples/pull/153/files#diff-fbc62050dd55921ec2d181897982ed3ec86be43aa835ea0536f56b4922cc6939
.gitignore https://github.com/triggerdotdev/examples/pull/153/files#diff-9abb6c8a04b7d5eeed4613b077f36c7098857c1c46ca4249912a0010933098bd
README.md https://github.com/triggerdotdev/examples/pull/153/files#diff-cd942cb16b5ce7c2489ef26117cca64d37fe6fab52d5eb27002b9df018fdfe80
next.config.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-6d6bd8fdc88925fda2213b411c911735b03647e8bd9945a265cacb489d54785e
package.json https://github.com/triggerdotdev/examples/pull/153/files#diff-e7b44eb7328c66e345d94922b948339b9115cb62d11d0b7ddde9c0a9fb75ea62
pnpm-lock.yaml https://github.com/triggerdotdev/examples/pull/153/files#diff-4014585aa9f36c6a911be4a7d6a36e111c12968bbd3aa6bfcb22bb601f1df4f0
postcss.config.mjs https://github.com/triggerdotdev/examples/pull/153/files#diff-dc133ca926b20969d829842e855013c1f6ffadac467340d58218c54f9146265e
apify-logo.svg https://github.com/triggerdotdev/examples/pull/153/files#diff-5cedac5f9b81008f41c5565a2a6eee4f9d9a98c074e354a0ea17fc2018198737
actions.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-644e038af92059cfc0e85b2589ed6afa8b713e937d0b420eebd689e7b054a791
globals.css https://github.com/triggerdotdev/examples/pull/153/files#diff-a9964d4280f8b3288bea637f48f4843995113cef24591e0456abc1cce7da9552
icon.svg https://github.com/triggerdotdev/examples/pull/153/files#diff-c60bc53999e10ffe8a773a233a96afe83a652cb006112e942609fcb07f2f7e27
layout.tsx https://github.com/triggerdotdev/examples/pull/153/files#diff-211bc362210b699fb35d56ab67407a66db6040fa1bb410a205dd4d4760293725
page.tsx https://github.com/triggerdotdev/examples/pull/153/files#diff-78d913dd15e32162de0c75fef6e70bc1482edb6512412562ca99ec47a84aaaf9
chat.tsx https://github.com/triggerdotdev/examples/pull/153/files#diff-2432e1145d714fbdf477f9e3e905df3202947bed00816cd7aa65ca4ba7ca9c4c
apify-tools.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-65c63dedb98dda97fdd7a63347419e36fb6f436b19223609034a9c728c92584c
apify.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-cde37349e84a157d8273e9e78c1518d2f8a1e71c83391243b9d01006623c3f01
discover-leads.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-5f518f85964328e156f2570d657b820fc4aac0f431b9d6df2fb80e9a048f0c03
enrich-lead.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-54731a2605f4cbc3ffe10cd225b58d4a76a31414fd29c8ec2ca19bdb2e431454
model.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-5d8650735ddd172d7b0ea07cfbb1d215f223b1383dbd7ae348772c81765eb073
research-agent.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-e28837a8c56c3186f66349058be2b6d018b83a21c2831db12ecdc06b9e46eb47
run-actor.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-2c92cdd232b203a4f91f29d0f965270eb69b64be91092a478e1c395f8142f9f3
trigger.config.ts https://github.com/triggerdotdev/examples/pull/153/files#diff-a11b3d611ee403671589b3ff031d9d4022b0541578c015e36a07e37d2430ef4d
tsconfig.json https://github.com/triggerdotdev/examples/pull/153/files#diff-1559ddc978e0e04e4d2514c1170bf67568b3280c6193bcf258d869d49a6771be
README.mdhttps://github.com/triggerdotdev/examples/pull/153/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
https://github.com/triggerdotdev/examples/pull/153/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/triggerdotdev/examples/pull/153/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
apify-lead-research/.env.examplehttps://github.com/triggerdotdev/examples/pull/153/files#diff-fbc62050dd55921ec2d181897982ed3ec86be43aa835ea0536f56b4922cc6939
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/apify-lead-research/.env.example
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
apify-lead-research/.gitignorehttps://github.com/triggerdotdev/examples/pull/153/files#diff-9abb6c8a04b7d5eeed4613b077f36c7098857c1c46ca4249912a0010933098bd
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/apify-lead-research/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
apify-lead-research/README.mdhttps://github.com/triggerdotdev/examples/pull/153/files#diff-cd942cb16b5ce7c2489ef26117cca64d37fe6fab52d5eb27002b9df018fdfe80
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/apify-lead-research/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
apify-lead-research/next.config.tshttps://github.com/triggerdotdev/examples/pull/153/files#diff-6d6bd8fdc88925fda2213b411c911735b03647e8bd9945a265cacb489d54785e
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/apify-lead-research/next.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
apify-lead-research/package.jsonhttps://github.com/triggerdotdev/examples/pull/153/files#diff-e7b44eb7328c66e345d94922b948339b9115cb62d11d0b7ddde9c0a9fb75ea62
View file https://github.com/triggerdotdev/examples/blob/08274ed0dd0363bb1a5400f863e6e571757ff4b9/apify-lead-research/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/examples/pull/153/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/examples/pull/153/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.