1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "documents": [
12 {
13 "id": "sample-rfp",
14 "text": "SOLICITATION 47QTCA-26-R-0007, General Services Administration. Request for Proposals. Offers are due no later than 2:00 PM ET on 15 September 2026. SECTION L - INSTRUCTIONS, CONDITIONS, AND NOTICES TO OFFERORS. L.1 The Technical Volume shall not exceed 30 pages. L.2 Proposals must be submitted in Times New Roman 12-point font with one-inch margins. L.3 The offeror shall submit a separate Price Volume (Volume II). L.4 The offeror shall describe its technical approach and management plan. L.5 The offeror shall provide three past performance references. L.6 The offeror must be registered in SAM.gov at time of proposal submission. SECTION M - EVALUATION FACTORS FOR AWARD. M.1 Technical approach. M.2 Past performance. M.3 Price. M.4 Small business participation will be evaluated."
15 },
16 {
17 "id": "sample-with-proposal",
18 "text": "SECTION L. The offeror shall submit a technical approach. The offeror shall provide a quality control plan. Proposals are due 30 June 2026. SECTION M. Evaluation factors: technical approach; quality control.",
19 "proposal_text": "Our Technical Approach: we will deliver the services using an agile methodology. Our team has 10 years of relevant experience."
20 }
21 ]
22};
23
24
25const run = await client.actor("jadelike_zine/rfp-compliance-matrix-extractor").call(input);
26
27
28console.log('Results from dataset');
29console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
30const { items } = await client.dataset(run.defaultDatasetId).listItems();
31items.forEach((item) => {
32 console.dir(item);
33});
34
35