// 01 · 在 snowsight 中
应用,就在您的数据旁边
Native App 附带一个 Streamlit 应用:查询单个联系人、补全整张表、建立公司名单并跟踪每次运行。每个页面调用的都是您可以从 SQL 调用的相同存储过程。
每一行,一次运行
将工具指向一张表或视图,匹配其列,在开始前就能看到这次运行的最高费用。结果写入应用中的新表,大型运行会在后台继续。
用筛选条件建立公司名单
选择国家/地区、行业、关键词、规模等。只有您选择的筛选条件会发送给 Tomba,没有自由文本查询,也不使用 AI,公司会写入一张新表。
结果就在您的数据旁边
每张结果表都保留您的输入值,因此可以与您的行关联。将前 10,000 行导出为 CSV 文件,或将表复制到您自己的数据库。
可跟踪、可恢复的运行
跟踪正在进行的运行,取消某次运行,或恢复已停止的运行:已完成的行会保留,不会重复收费。自动恢复会在第二天重试。
让表保持补全
计划会在您设定的时间对一张表运行工具,只查询自上次运行以来新增的行。只有 app_admin 可以创建或更改计划。
用量和积分一目了然
概览显示安装状态、三种开始方式以及最近 30 天的数据:查询的行数、分开统计的搜索积分和验证积分,以及 Snowflake 收取的费用。
// 02 · 在 sql 中
每个工具都是可调用的存储过程
从工作表、笔记本、任务或 dbt 中调用 Tomba。单个值会立即返回;整张表会分块运行,并在应用内写入结果表。
-- one value: the answer comes back at once
CALL TOMBA.core.email_finder('piedpiper.com', 'Richard', 'Hendricks');-- every row of a table: results go to TOMBA.RESULTS.LEADS_FOUND
CALL TOMBA.core.find_emails(
'CRM.PUBLIC.LEADS',
'COMPANY_DOMAIN', 'FIRST_NAME', 'LAST_NAME',
'LEADS_FOUND',
1000
);-- any tool, with its options
CALL TOMBA.core.run_tool(
'domain_search',
'CRM.PUBLIC.ACCOUNTS',
{'domain': 'WEBSITE'},
'SALES_EMAILS',
100,
{'emails_per_domain': 20, 'department': 'sales'}
);-- a large table in the background, with a credit limit
CALL TOMBA.core.run_tool_async(
'email_finder',
'CRM.PUBLIC.LEADS',
{'domain': 'COMPANY_DOMAIN', 'first_name': 'FIRST_NAME', 'last_name': 'LAST_NAME'},
'LEADS_FOUND',
500000,
{'max_credits': 20000}
);
-- new rows every morning at 06:00 UTC
CALL TOMBA.core.create_schedule(
'DAILY_LEADS', 'email_finder', 'CRM.PUBLIC.LEADS',
{'domain': 'COMPANY_DOMAIN', 'full_name': 'NAME'},
'LEADS_ENRICHED', '0 6 * * *',
{'max_credits': 1000}
);-- read the results, then keep a copy in your own database
SELECT INPUT_FIRST_NAME, INPUT_LAST_NAME, EMAIL, SCORE, VERIFICATION_STATUS
FROM TOMBA.RESULTS.LEADS_FOUND
WHERE LOOKUP_STATUS = 'found';
CREATE TABLE crm.public.leads_found AS
SELECT * FROM TOMBA.RESULTS.LEADS_FOUND;结果 · 3
| # | INPUT_FIRST_NAME | INPUT_LAST_NAME | SCORE | LOOKUP_STATUS | CREDITS | |
|---|---|---|---|---|---|---|
| 1 | Richard | Hendricks | richard@piedpiper.com | 100 | found | 1 |
| 2 | Dinesh | Chugtai | dinesh@piedpiper.com | 99 | found | 1 |
| 3 | Bertram | Gilfoyle | gilfoyle@piedpiper.com | 97 | found | 1 |
结果表以您的输入值开头,因此可以与您的行关联;每一行都会注明 Tomba 是否找到结果以及费用。
// 03 · 存储过程
13 个工具,可处理单个值或整张表
每个工具都有一个处理整张表的存储过程和一个处理单个值的存储过程,费用与其 Tomba 端点相同。run_tool 和 lookup 这两个存储过程可以按名称调用任意工具,并传入其选项。
Email Finder1 search credit
core.find_emails(input_table, domain_column, first_name_column, last_name_column, output_table)
core.email_finder(domain, first_name, last_name)
Email Verifier1 verification credit
core.verify_emails(input_table, email_column, output_table)
core.email_verifier(email)
Domain Search1 search credit per 10 emails requested
core.search_domains(input_table, domain_column, output_table)
core.domain_search(domain)
Email Enrichment1 search credit
core.enrich_emails(input_table, email_column, output_table)
core.email_enrichment(email)
Person Enrichment1 search credit
core.enrich_people(input_table, email_column, output_table)
core.person_enrichment(email)
全部 13 个工具
Company Enrichment1 search credit
core.enrich_companies(input_table, domain_column, output_table)
core.company_enrichment(domain)
Combined Enrichment2 search credits
core.enrich_combined(input_table, email_column, output_table)
core.combined_enrichment(email)
LinkedIn Finder1 search credit
core.find_emails_from_linkedin(input_table, url_column, output_table)
core.linkedin_finder(url)
Author Finder1 search credit
core.find_authors(input_table, url_column, output_table)
core.author_finder(url)
Phone Finder5 search credits
core.find_phones(input_table, email_column, output_table)
core.phone_finder(email)
Phone Validator1 search credit
core.validate_phones(input_table, phone_column, output_table)
core.phone_validator(phone)
Similar Domains1 search credit
core.find_similar_domains(input_table, domain_column, output_table)
core.similar_finder(domain)
Companies Search1 search credit per 50 companies
core.search_companies(filters, output_table, max_results)
core.lookup('companies_search', {…})
| 工具 | 整张表 | 单个值 | 费用 |
|---|---|---|---|
Email FinderGET /email-finder | core.find_emails(input_table, domain_column, first_name_column, last_name_column, output_table) | core.email_finder(domain, first_name, last_name) | 1 search credit |
Email VerifierGET /email-verifier | core.verify_emails(input_table, email_column, output_table) | core.email_verifier(email) | 1 verification credit |
Domain SearchGET /domain-search | core.search_domains(input_table, domain_column, output_table) | core.domain_search(domain) | 1 search credit per 10 emails requested |
Email EnrichmentGET /enrich | core.enrich_emails(input_table, email_column, output_table) | core.email_enrichment(email) | 1 search credit |
Person EnrichmentGET /people/find | core.enrich_people(input_table, email_column, output_table) | core.person_enrichment(email) | 1 search credit |
Company EnrichmentGET /companies/find | core.enrich_companies(input_table, domain_column, output_table) | core.company_enrichment(domain) | 1 search credit |
Combined EnrichmentGET /combined/find | core.enrich_combined(input_table, email_column, output_table) | core.combined_enrichment(email) | 2 search credits |
LinkedIn FinderGET /linkedin | core.find_emails_from_linkedin(input_table, url_column, output_table) | core.linkedin_finder(url) | 1 search credit |
Author FinderGET /author-finder | core.find_authors(input_table, url_column, output_table) | core.author_finder(url) | 1 search credit |
Phone FinderGET /phone-finder | core.find_phones(input_table, email_column, output_table) | core.phone_finder(email) | 5 search credits |
Phone ValidatorGET /phone-validator | core.validate_phones(input_table, phone_column, output_table) | core.phone_validator(phone) | 1 search credit |
Similar DomainsGET /similar | core.find_similar_domains(input_table, domain_column, output_table) | core.similar_finder(domain) | 1 search credit |
Companies SearchPOST /reveal/search | core.search_companies(filters, output_table, max_results) | core.lookup('companies_search', {…}) | 1 search credit per 50 companies |
每张结果表都包含
先是您的输入值(INPUT_ 列),然后是工具自己的列,最后是以下各列:
- LOOKUP_STATUS
- CREDITS
- CREDIT_TYPE
- DATA
- ERROR
- LOOKED_UP_AT
- SOURCE
// 04 · 设置
从 Marketplace 到首次运行
应用会自行创建到 api.tomba.io 的连接;您只需批准它,并选择它可以读取的表。无需设置网络规则、Secret 或 API 密钥。
- 01
获取应用
在 Snowsight 的 Data Products › Marketplace 中找到 Tomba,为应用命名并选择一个仓库。X-Small 就足够了。
- 02
批准连接
在应用的 Security 选项卡中,批准 Tomba API 连接。它只访问 api.tomba.io。
- 03
共享您的表
在应用中选择一张表或视图,或在 SQL 中授予其 SELECT 权限。
- 04
运行工具
在应用中查询联系人或补全一张表,或在任意工作表中调用存储过程。
// 05 · 定价
按积分付费,计入您的 Snowflake 账单
无需 Tomba 套餐,也无需 Tomba 账户:Snowflake 按应用使用的每个 Tomba 积分计费,搜索积分和验证积分价格相同。
// 每个 tomba 积分
$0.0098
每个搜索积分或验证积分的价格,由 Snowflake 计费。每个工具的费用与在 tomba.io 上相同。
示例,四舍五入到美分
- 1 → $0.01
- 3 → $0.03
- 51 → $0.50
- 1,000 → $9.80
不收费的情况
未找到任何内容的查询、无效输入、错误、来自缓存的结果、同月内重复的相同查询以及重复行。Phone Validator 每次检查都会收费。
每次运行都有上限
为每次运行设置积分上限,并为整个应用设置每月积分预算。运行按可能的最高费用预估,因此不会超出。
新安装有初始上限
在 Snowflake 的记录中确认安装之前,每个 UTC 日 200 次查询,确认通常在几小时内完成。
上架试用
在 Marketplace 上架试用期间,每次调用最多处理 100 行,不收取任何费用。
Snowflake 计算资源
后台运行和计划使用无服务器任务,像其他无服务器任务一样计入您的账户。
不会重复收费
停止的运行会从中断处继续:已完成的行会保留,不会重复收费。
// 06 · 您的数据
您的表留在 Snowflake 中
应用只读取您共享的表,将结果写在应用内部,并且只向 Tomba 发送每次查询所需的值。
哪些数据会离开您的账户
- 只访问您批准的一个主机
- 应用只能通过您批准的外部访问连接访问
api.tomba.io:443。 - 只发送查询所需的内容
- 您传入的值,例如域名、姓名、邮箱、URL 和电话号码,以及用于计费的用量计数。绝不发送您的表。
哪些数据留在 Snowflake 中
- 结果保存在应用中
- 结果表位于您账户中的
TOMBA.RESULTS。将它们复制到您自己的数据库中,以便保留和共享。 - 任何角色都读不到的凭据
- 应用将凭据保存在私有架构中。您无需保存任何 API 密钥。
- 两个应用角色
app_public运行工具并读取结果和历史记录;app_admin还可以更改设置和计划。- 只读访问
- 您共享的表和视图仅通过
SELECT读取。
共享表并授予访问权限
-- let the app read a table (or use Choose a table in the app)
GRANT USAGE ON DATABASE crm TO APPLICATION TOMBA;
GRANT USAGE ON SCHEMA crm.public TO APPLICATION TOMBA;
GRANT SELECT ON TABLE crm.public.leads TO APPLICATION TOMBA;
-- who runs the tools, and who changes the settings
GRANT APPLICATION ROLE TOMBA.app_public TO ROLE analyst;
GRANT APPLICATION ROLE TOMBA.app_admin TO ROLE sysadmin;Snowflake 是 Snowflake Inc. 的商标。