import fetch from 'node-fetch';
const payload = {
"input_prompt": "Your job is to write compelling HTML emails to leads who are senior members of the information technology organizations in companies in the United States. The goal of the emails is to create curiosity and interest in the product and services represented by partners and value added resellers of Amazon Web Services so that the leads will click the links in the email to learn more about the services. reference linked documents if there are any identified to understand more about the services provided and relay that information in the emails you write. If applicable reference industry specific information you find relative to the lead's specific industry. If possible reference the lead's security goals in the body of the email. Whenever possible link the services to specific value that the prospect can derive from the services. Use the following letters as very basic templates. Using the JSON data below as the prospect data. \n\n{ \nFirst_Name: {{First_Name}}, \nLast_Name: {{Last_Name}},\nTitle: {{Title}},\nDomain: {{Domain}},\nEmail: {{email}},\nCity: {{City}},\nState: {{State}},\nIndustry: {{Industry}}, \nSecurity_Goals: {{goals}}, \ncompany: {{Company_Name}}, \n}\n\n*** EXAMPLE LETTER SEQUENCE\n{ \n\"Letter1\": content: \"\nDear, {First_Name}\n\nSince 2006, Amazon Web Services has been the world's most comprehensive and broadly adopted cloud. AWS has been continually expanding its services to support virtually any workload, and it now has more than 240 fully featured services for compute, storage, databases, networking, analytics, machine learning and artificial intelligence (AI), Internet of Things (IoT), mobile, security, hybrid, virtual and augmented reality (VR and AR), media, and application development, deployment, and management. To learn more about AWS, visit</span> <a href=\"https://cts.businesswire.com/ct/CT?id=smartlink&url=https%3A%2F%2Faws.amazon.com%2F&esheet=53554933&newsitemid=20230918127784&lan=en-US&anchor=aws.amazon.com&index=9&md5=e429c8c77109fadbc7c4306ad4011a1b\" target=\"_blank\" id=\"\">aws.amazon.com</a>.\n\nBest regards,\nSteve\n\",\n\n\"Letter2\": content: \"\n\nHi {{First_Name}},\n\nYour team's ability to accelerate innovation and speed to market directly impacts your company's success. From staying competitive, meeting customer demands, and capitalizing on market opportunities, an Amazon Web Services (AWS) foundation can empower your team with speed.\n\nExplore these real-world stories of ways software companies are meeting their innovation goals faster with AWS, including how:\n\nJamf uses pre-built solutions to speed up the time to market for new software solutions\nBMC Software brings more intelligence to its workloads in the cloud, while adding analytics and observability\nGigamon adds depth to its observability and greater granularity in its troubleshooting\nLearn how building software products on AWS helps you turn your roadmap into reality at lightning speed.\n\nbest,\nSteve\n\",\n\n\"Letter3\": content: \"\n\n \nHi {{First_Name}},\nThank you again for joining our workshop and experiencing the performance and security benefits that come with single dashboard visibility of your AWS environments through the Logz.io Observability platform.\n\nTo help continue your observability learning, we\u2019d love to share [Title of eBook] with you. This eBook [placeholder for copy promoting eBook content.]\n\n \n \nRead the eBook\n\",\n\n\"Letter4\": content: \"\n\nHi {{First_Name}},\n\nAs an independent software vendor (ISV) and Amazon Web Services (AWS) partner, you could be doing more to bring your big ideas to life faster and more efficiently.\n\nOther software companies \u2014 such as Zoom, Canva, Zendesk, Snowflake, and Coupang \u2014 are driving innovation by taking full advantage of developing modern applications on an AWS foundation.\n\nExplore their real-world use cases and success stories to learn how you could be reaping the full benefits of your AWS partnership. Learn how you could be:\n\nGetting to market faster\nInnovating with data and artificial intelligence\nModernizing and optimizing your platform\nLearn how others are taking advantage of all AWS has to offer.\n\n \n \nStart now\n \n\",\n\n\"Letter5\": content: \"\nHi {{First_Name}},\nYour team's ability to accelerate innovation and speed to market directly impacts your company's success. From staying competitive, meeting customer demands, and capitalizing on market opportunities, an Amazon Web Services (AWS) foundation can empower your team with speed.\n\nExplore these real-world stories of ways software companies are meeting their innovation goals faster with AWS, including how:\n\nJamf uses pre-built solutions to speed up the time to market for new software solutions\nBMC Software brings more intelligence to its workloads in the cloud, while adding analytics and observability\nGigamon adds depth to its observability and greater granularity in its troubleshooting\nLearn how building software products on AWS helps you turn your roadmap into reality at lightning speed.\n\n \n \nLearn more\n \n\",\n\n\"Letter6\": content: \"\n \nHi {{First_Name}},\n\nReady to leverage your data as your software company's competitive advantage?\n\nAmazon Web Services (AWS) comprehensive data solutions help you harness the power of artificial intelligence (AI) and data to stay responsive to customer demands. \n\nOther leading software companies and AWS partners are already fueling their innovation with AWS solutions. Dive into these success stories to learn how:\n\nCoupang, Snowflake, and Wiz use data as a business driver\nHUMAN Security tripled the number of ML models deployed\nBazaarvoice leveraged AWS to handle exponential growth in data volume\nEnsure that you are keeping pace with data trends and with the competition.\n\n \n \nExplore innovation\n \n\",\n\n\"Letter7\": content: \"\n \nHi {{First_Name}},\n\nYour AWS environment enables innovation and flexibility \u2014 and generates massive amounts of data. Some of this data is noise you can ignore; some is critical to infrastructure performance and security. Logz.io's Open 360\u2122 observability platform makes it simple to spot the difference and respond quickly to technology stack issues.\n\nYou\u2019re invited to explore Logz.io\u2019s Open 360\u2122 observability platform during our AWS Immersion Day on Wednesday, October 18, at 11 A.M. CT. This hands-on virtual workshop is an opportunity to experience a single dashboard view of AWS environment data and easily unify open source technologies such as Amazon OpenSearch and OpenTelemetry.\n\nLearn the essentials of observability, plus:\n\nCreate an Amazon EKS Cluster\nEasily collect logs, metrics, and traces by installing Logz.io observability collector\nDeploy OpenTelemetry Demo application\nWork with logs, metrics, and traces to uncover and resolve issues:\nSearch logs\nVisualize your data\nCreate alerts\nWhat: Observability Immersion Day\nWhen: Wednesday, October 18, 2023 | 11 A.M. CT \u2013 12:30 P.M. CT\nWhere: Online\n\n \n \nRegister Now\n \n\",\n\n}\n\n\nPlease output the JSON of the individual letters:\n*** OUTPUT LETTER SEQUENCE \n\n",
"selected_models": [
"gpt_4_32k"
]
};
async function gooeyAPI() {
const response = await fetch("https://api.gooey.ai/v2/CompareLLM?example_id=nii0chddki9x", {
method: "POST",
headers: {
"Authorization": "bearer " + process.env["GOOEY_API_KEY"],
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (!response.ok) {
throw new Error(response.status);
}
const result = await response.json();
console.log(response.status, result);
}
gooeyAPI();