SlideShare a Scribd company logo
1 of 36
Download to read offline
ChatGPTs
Gene Leybzon, Jim Steele
December 7, 2023
DISCLAIMER
Ā§ The views and opinions expressed by the Presenter are those of the Presenter.
Ā§ Presentation is not intended as legal or financial advice and may not be used as legal or
financial advice.
Ā§ Every effort has been made to assure this information is up-to-date as of the date of
publication.
Agenda for today
1. Introduction to ChatGPTs
2. Key Features
3. Creating CatGPT
4. Creating Text Style Artist
5. ChatGPT Actions
6. Domain Name Search
7. Questions and Open Discussions
GPTs
Value Proposition:
Custom versions of ChatGPT that combine instructions, extra
knowledge, and any combination of skills.
Definition:
Ability to be tailored to specific needs and applications. This
customization allows users to create a ChatGPT model that is
more directly useful and relevant to their individual or
organizational requirements. GPTs enable users to incorporate
specific instructions, additional knowledge, and various skills,
enhancing their functionality in daily life, work, or other specific
areas.
There will be a GPT for everyone and everything
https://openai.com/blog/introducing-gpts
Key Features
Personalization:
ā€¢Ability to add specific instructions, enhancing the model's responses to fit particular needs.
ā€¢Inclusion of unique knowledge sets, allowing the model to provide specialized information.
Ease of Creation:
ā€¢User-friendly interface enabling anyone to build a GPT without coding expertise.
ā€¢Step-by-step guidance through the creation process, making it accessible for non-technical
users.
Versatile Applications:
ā€¢Adaptability for various sectors such as education, business, entertainment, etc.
ā€¢Examples of custom GPTs for tasks like teaching, customer support, and creative writing.
Safety and Privacy Focused:
ā€¢Strong emphasis on data protection and user privacy.
ā€¢Options to control data sharing and usage, ensuring ethical AI practices.
Community and Sharing:
ā€¢Opportunities for sharing and discovering GPTs in the GPT Store.
ā€¢Encouragement of community involvement in creating and improving GPTs.
Demo 1: How to build šŸ±CatGPT šŸ±?
Enter
Application
Name and
Description
Add/edit
instructions
Add
application
data (if
any)
Add or
create icon
Publish (for
yourself) Test Publish to
the World
Add Name, Description, Prompt, and Conversation Starters
Add/edit Instructions
ā€œDevelop an interactive module that generates daily custom-
tailored advice and interesting facts about cat care. This module
should consider the specific breed, age, and personality traits of
the user's cat. Include a daily trivia quiz about feline behavior and
health, a feature for users to maintain a photo diary of their catā€™s
growth and memorable moments, and a community forum where
cat owners can connect, share experiences, and seek advice. The
system should employ natural language processing to offer
conversational and engaging content, ensuring a user-friendly and
informative experience for all cat lovers.ā€
Upload Relevant Files and select Capabilities
Create or Upload App Icon
Save your work
Test
Check the response
Update Instructions
ā€¦The system should employ natural language processing to offer
conversational and engaging content, ensuring a user-friendly
and informative experience for all cat lovers.
Always provide URL with the link to relevant websites that talk
about cat products and services
Test Again, and Againā€¦
Publish!
ā‘ 
ā‘¢
ā‘”
Demo2: Text Style Artists
Font Artist who make my text text
elegant and stylized
What would you like to make?
Demo2: Text Style Artists
Font Artist who make my text text
elegant and stylized
What would you like to make?
Name the GPT and Create Icon
Update GPT requirements from the chat
ā€œShould produce all possible styles
available from Unicode, such as
Gothic/Bold Fraktur Script, Monospace
Script, Bold Script, Sans Serif Bold,
Double-Struck Script, as well as others.ā€
'Elegant Text' is a formal and professional GPT specializing in
typography, with the added capability to produce a wide range of
styles available from Unicode. It can suggest and demonstrate text
in styles like Gothic/Bold Fraktur Script, Monospace Script, Bold
Script, Sans Serif Bold, Double-Struck Script, and more. This GPT
guides users in selecting the perfect style to match the tone and
purpose of their text, whether for academic, professional, or
personal projects. It provides explanations for why certain styles
are suitable for specific contexts, combining practical advice with
typographic expertise. 'Elegant Text' maintains a formal demeanor
while offering a rich variety of typographic options, making it a
valuable resource for anyone looking to enhance their textual
presentations.
ā¬‡ļø ā¬‡ļø ā¬‡ļø ā¬‡ļø
Test š”Šš”¬š”±š”„š”¦š”  š”–š” š”Æš”¦š”­š”±
Connecting your GPT to your API
Actions are custom functionalities that can be added to GPT
models, allowing them to integrate with external data sources
or interact with real-world systems. This feature extends the
built-in capabilities of GPTs by enabling connections to
databases, email systems, e-commerce platforms, and more.
For example, a GPT could be integrated with a travel listings
database, connected to a user's email inbox, or used to
assist with online shopping.
Action example: domain name search GPT
1.The User accesses and authenticates on ChatGPT at
chat.openai.com.
2.The User sends a request.
3.ChatGPT calls the AWS Infrastructure, specifically the AWS
API Gateway.
4.The AWS API Gateway triggers an AWS Lambda function.
5.AWS Lambda checks domain availability via DNS.
6.DNS returns the domain status to AWS Lambda.
7.AWS Lambda returns the result to the AWS API Gateway.
8.The AWS API Gateway sends the response back to ChatGPT.
9.ChatGPT responds to the User.
GPT Configuration
Action Configuration
Ī» - FUNCTION
'use strict';
import { resolve } from 'dns/promises';
function isValidDomain(domain) {
const domainRegex = /^(?!-)([A-Za-z0-9-]{1,63}(?<!-).)+[A-Za-z]{2,}$/;
return domainRegex.test(domain);
}
export const handler = async (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2));
let body;
let statusCode = '200';
const headers = {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': '*',
'Access-Control-Allow-Headers': '*'
};
console.log("event", event);
const domainName = event.queryStringParameters.name;
console.log("domain:", domainName);
let isAvailable = false;
let message = "";
if (isValidDomain(domainName)) {
try {
await resolveDomain(domainName);
}
catch (error) {
isAvailable = true;
}
if (isAvailable) {
message = `${domainName} seems to be available (no DNS records found)!`;
}
else {
message = `${domainName} has DNS records. It's likely taken.`;
}
}
else {
message = "Ivalid domain name";
}
body = JSON.stringify({
domainName: domainName,
available: isAvailable,
message: message
});
return {
statusCode,
body,
headers,
};
};
const resolveDomain = async (domainName) => {
try {
return await resolve(domainName);
}
catch (error) {
throw error;
}
};
Domain name search demo
QUESTIONS?
About Presenter
https://www.meetup.com/members/9074420/
https://www.linkedin.com/in/leybzon/
BACKUP SLIDES
Architecture of AI Systems - Direct User Interaction
with LLM
Summary: User communicates directly
with web-based application, for
example, by connecting to
https://chat.openai.com/
Architecture of AI Systems - Direct User Interaction
with LLM
Generative AI architecture
Generative AI architecture
Generative AI architecture

More Related Content

What's hot

ChatGPT for Academic
ChatGPT for AcademicChatGPT for Academic
ChatGPT for AcademicAndry Alamsyah
Ā 
ChatGPT-the-revolution-is-coming.pdf
ChatGPT-the-revolution-is-coming.pdfChatGPT-the-revolution-is-coming.pdf
ChatGPT-the-revolution-is-coming.pdfLiang Yan
Ā 
Researching with ChatGPT.pptx
Researching  with ChatGPT.pptxResearching  with ChatGPT.pptx
Researching with ChatGPT.pptxSB Kishor
Ā 
Revolutionary-ChatGPT
Revolutionary-ChatGPTRevolutionary-ChatGPT
Revolutionary-ChatGPT9 series
Ā 
Unleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPTUnleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPTDemetris D-Papa
Ā 
Increase Productivity with ChatGPT
Increase Productivity with ChatGPTIncrease Productivity with ChatGPT
Increase Productivity with ChatGPTPrinceGarg95
Ā 
Generative Models and ChatGPT
Generative Models and ChatGPTGenerative Models and ChatGPT
Generative Models and ChatGPTLoic Merckel
Ā 
Prompt Engineering Guide.pptx
Prompt Engineering Guide.pptxPrompt Engineering Guide.pptx
Prompt Engineering Guide.pptxAmitSherewat
Ā 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
Ā 
Exploring ChatGPT For Effective Teaching
Exploring ChatGPT For Effective TeachingExploring ChatGPT For Effective Teaching
Exploring ChatGPT For Effective TeachingAdicodeTechnologies
Ā 
Praneetā€™s Pre On ChatGpt edited.pptx
Praneetā€™s Pre On ChatGpt edited.pptxPraneetā€™s Pre On ChatGpt edited.pptx
Praneetā€™s Pre On ChatGpt edited.pptxSalunke2
Ā 
Introduction to ChatGPT
Introduction to ChatGPTIntroduction to ChatGPT
Introduction to ChatGPTannusharma26
Ā 
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...DataScienceConferenc1
Ā 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptxomornahid1
Ā 

What's hot (20)

LANGUAGE TRANSLATOR
LANGUAGE TRANSLATORLANGUAGE TRANSLATOR
LANGUAGE TRANSLATOR
Ā 
ChatGPT for Academic
ChatGPT for AcademicChatGPT for Academic
ChatGPT for Academic
Ā 
ChatGPT-the-revolution-is-coming.pdf
ChatGPT-the-revolution-is-coming.pdfChatGPT-the-revolution-is-coming.pdf
ChatGPT-the-revolution-is-coming.pdf
Ā 
Researching with ChatGPT.pptx
Researching  with ChatGPT.pptxResearching  with ChatGPT.pptx
Researching with ChatGPT.pptx
Ā 
Revolutionary-ChatGPT
Revolutionary-ChatGPTRevolutionary-ChatGPT
Revolutionary-ChatGPT
Ā 
ChatGPT.pptx
ChatGPT.pptxChatGPT.pptx
ChatGPT.pptx
Ā 
Unleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPTUnleashing The Power Of CHAT-GPT
Unleashing The Power Of CHAT-GPT
Ā 
Increase Productivity with ChatGPT
Increase Productivity with ChatGPTIncrease Productivity with ChatGPT
Increase Productivity with ChatGPT
Ā 
Generative Models and ChatGPT
Generative Models and ChatGPTGenerative Models and ChatGPT
Generative Models and ChatGPT
Ā 
Prompt Engineering Guide.pptx
Prompt Engineering Guide.pptxPrompt Engineering Guide.pptx
Prompt Engineering Guide.pptx
Ā 
Chatgpt ppt
Chatgpt  pptChatgpt  ppt
Chatgpt ppt
Ā 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Ā 
ChatGPT General Meeting
ChatGPT General MeetingChatGPT General Meeting
ChatGPT General Meeting
Ā 
Exploring ChatGPT For Effective Teaching
Exploring ChatGPT For Effective TeachingExploring ChatGPT For Effective Teaching
Exploring ChatGPT For Effective Teaching
Ā 
Open AI Chat GPT.
Open AI Chat GPT.Open AI Chat GPT.
Open AI Chat GPT.
Ā 
Praneetā€™s Pre On ChatGpt edited.pptx
Praneetā€™s Pre On ChatGpt edited.pptxPraneetā€™s Pre On ChatGpt edited.pptx
Praneetā€™s Pre On ChatGpt edited.pptx
Ā 
Introduction to ChatGPT
Introduction to ChatGPTIntroduction to ChatGPT
Introduction to ChatGPT
Ā 
ChatGPT Use- Cases
ChatGPT Use- Cases ChatGPT Use- Cases
ChatGPT Use- Cases
Ā 
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...
[DSC DACH 23] ChatGPT and Beyond: How generative AI is Changing the way peopl...
Ā 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptx
Ā 

Similar to ChatGPT Customization Guide

ChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdfChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdfSonal Tiwari
Ā 
ChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfrajugt3
Ā 
ChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanWey Wey Web
Ā 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft Meetups
Ā 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft Meetups
Ā 
chatgpt how it works
chatgpt how it workschatgpt how it works
chatgpt how it workscolomomario446
Ā 
How to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for CustomersHow to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for CustomersVbout.com
Ā 
What is chat gpt advance guide.docx
What is chat gpt advance guide.docxWhat is chat gpt advance guide.docx
What is chat gpt advance guide.docxVersionsol
Ā 
What is Chatgpt Complete Guide
What is Chatgpt Complete GuideWhat is Chatgpt Complete Guide
What is Chatgpt Complete GuideRavendra Singh
Ā 
ChatGPT For Business Use
ChatGPT For Business UseChatGPT For Business Use
ChatGPT For Business UseSanjay Willie
Ā 
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27MysoreMuleSoftMeetup
Ā 
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdf
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdfGPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdf
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdfmd Sanaullah
Ā 
Introduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathIntroduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathsharonP24
Ā 
Introduction to Chat GPT
Introduction to Chat GPTIntroduction to Chat GPT
Introduction to Chat GPTDianaGray10
Ā 
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AIIIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AIAustraliaChapterIIBA
Ā 
The World of ChatGPT.pdf
The World of ChatGPT.pdfThe World of ChatGPT.pdf
The World of ChatGPT.pdfRia Morgan
Ā 
Case study on ChatGPT.pdf
Case study on ChatGPT.pdfCase study on ChatGPT.pdf
Case study on ChatGPT.pdfPrathameshMore53
Ā 

Similar to ChatGPT Customization Guide (20)

ChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdfChatGPT and OpenAI.pdf
ChatGPT and OpenAI.pdf
Ā 
ChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdf
Ā 
ChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano Firtman
Ā 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
Ā 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
Ā 
chatgpt how it works
chatgpt how it workschatgpt how it works
chatgpt how it works
Ā 
How to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for CustomersHow to Use ChatGPT to Create Personalized Experiences for Customers
How to Use ChatGPT to Create Personalized Experiences for Customers
Ā 
What is chat gpt advance guide.docx
What is chat gpt advance guide.docxWhat is chat gpt advance guide.docx
What is chat gpt advance guide.docx
Ā 
What is Chatgpt Complete Guide
What is Chatgpt Complete GuideWhat is Chatgpt Complete Guide
What is Chatgpt Complete Guide
Ā 
ChatGPT For Business Use
ChatGPT For Business UseChatGPT For Business Use
ChatGPT For Business Use
Ā 
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT ā€” Part 1 | MuleSoft Mysore Meetup #27
Ā 
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdf
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdfGPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdf
GPT Studio Review āœļø Full OTO Details + Bonuses + Honest Reviews.pdf
Ā 
Making the Move to Git
Making the Move to GitMaking the Move to Git
Making the Move to Git
Ā 
ChatGPT SEO Guide 2023
ChatGPT SEO Guide 2023ChatGPT SEO Guide 2023
ChatGPT SEO Guide 2023
Ā 
Introduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathIntroduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPath
Ā 
Introduction to Chat GPT
Introduction to Chat GPTIntroduction to Chat GPT
Introduction to Chat GPT
Ā 
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AIIIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBAĀ® Brisbane - The Rise of ChatGPT, Chatbots and AI
Ā 
The World of ChatGPT.pdf
The World of ChatGPT.pdfThe World of ChatGPT.pdf
The World of ChatGPT.pdf
Ā 
Github job support.pptx
Github job support.pptxGithub job support.pptx
Github job support.pptx
Ā 
Case study on ChatGPT.pdf
Case study on ChatGPT.pdfCase study on ChatGPT.pdf
Case study on ChatGPT.pdf
Ā 

More from Gene Leybzon

Generative AI Application Development using LangChain and LangFlow
Generative AI Application Development using LangChain and LangFlowGenerative AI Application Development using LangChain and LangFlow
Generative AI Application Development using LangChain and LangFlowGene Leybzon
Ā 
Generative AI Use cases for Enterprise - Second Session
Generative AI Use cases for Enterprise - Second SessionGenerative AI Use cases for Enterprise - Second Session
Generative AI Use cases for Enterprise - Second SessionGene Leybzon
Ā 
Generative AI Use-cases for Enterprise - First Session
Generative AI Use-cases for Enterprise - First SessionGenerative AI Use-cases for Enterprise - First Session
Generative AI Use-cases for Enterprise - First SessionGene Leybzon
Ā 
Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Gene Leybzon
Ā 
Introduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxIntroduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxGene Leybzon
Ā 
Ethereum in Enterprise.pptx
Ethereum in Enterprise.pptxEthereum in Enterprise.pptx
Ethereum in Enterprise.pptxGene Leybzon
Ā 
ERC-4907 Rentable NFT Standard.pptx
ERC-4907 Rentable NFT Standard.pptxERC-4907 Rentable NFT Standard.pptx
ERC-4907 Rentable NFT Standard.pptxGene Leybzon
Ā 
Onchain Decentralized Governance 2.pptx
Onchain Decentralized Governance 2.pptxOnchain Decentralized Governance 2.pptx
Onchain Decentralized Governance 2.pptxGene Leybzon
Ā 
Onchain Decentralized Governance.pptx
Onchain Decentralized Governance.pptxOnchain Decentralized Governance.pptx
Onchain Decentralized Governance.pptxGene Leybzon
Ā 
Web3 File Storage Options
Web3 File Storage OptionsWeb3 File Storage Options
Web3 File Storage OptionsGene Leybzon
Ā 
Web3 Full Stack Development
Web3 Full Stack DevelopmentWeb3 Full Stack Development
Web3 Full Stack DevelopmentGene Leybzon
Ā 
Instantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardInstantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardGene Leybzon
Ā 
Non-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceNon-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceGene Leybzon
Ā 
The Art of non-fungible tokens
The Art of non-fungible tokensThe Art of non-fungible tokens
The Art of non-fungible tokensGene Leybzon
Ā 
Graph protocol for accessing information about blockchains and d apps
Graph protocol for accessing information about blockchains and d appsGraph protocol for accessing information about blockchains and d apps
Graph protocol for accessing information about blockchains and d appsGene Leybzon
Ā 
Substrate Framework
Substrate FrameworkSubstrate Framework
Substrate FrameworkGene Leybzon
Ā 
OpenZeppelin + Remix + BNB smart chain
OpenZeppelin + Remix + BNB smart chainOpenZeppelin + Remix + BNB smart chain
OpenZeppelin + Remix + BNB smart chainGene Leybzon
Ā 
Chainlink, Cosmos, Kusama, Polkadot: Approaches to the Internet of Blockchains
Chainlink, Cosmos, Kusama, Polkadot:   Approaches to the Internet of BlockchainsChainlink, Cosmos, Kusama, Polkadot:   Approaches to the Internet of Blockchains
Chainlink, Cosmos, Kusama, Polkadot: Approaches to the Internet of BlockchainsGene Leybzon
Ā 
Dex and Uniswap
Dex and UniswapDex and Uniswap
Dex and UniswapGene Leybzon
Ā 

More from Gene Leybzon (20)

Generative AI Application Development using LangChain and LangFlow
Generative AI Application Development using LangChain and LangFlowGenerative AI Application Development using LangChain and LangFlow
Generative AI Application Development using LangChain and LangFlow
Ā 
Generative AI Use cases for Enterprise - Second Session
Generative AI Use cases for Enterprise - Second SessionGenerative AI Use cases for Enterprise - Second Session
Generative AI Use cases for Enterprise - Second Session
Ā 
Generative AI Use-cases for Enterprise - First Session
Generative AI Use-cases for Enterprise - First SessionGenerative AI Use-cases for Enterprise - First Session
Generative AI Use-cases for Enterprise - First Session
Ā 
Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Non-fungible tokens (nfts)
Non-fungible tokens (nfts)
Ā 
Introduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxIntroduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptx
Ā 
Ethereum in Enterprise.pptx
Ethereum in Enterprise.pptxEthereum in Enterprise.pptx
Ethereum in Enterprise.pptx
Ā 
ERC-4907 Rentable NFT Standard.pptx
ERC-4907 Rentable NFT Standard.pptxERC-4907 Rentable NFT Standard.pptx
ERC-4907 Rentable NFT Standard.pptx
Ā 
Onchain Decentralized Governance 2.pptx
Onchain Decentralized Governance 2.pptxOnchain Decentralized Governance 2.pptx
Onchain Decentralized Governance 2.pptx
Ā 
Onchain Decentralized Governance.pptx
Onchain Decentralized Governance.pptxOnchain Decentralized Governance.pptx
Onchain Decentralized Governance.pptx
Ā 
Web3 File Storage Options
Web3 File Storage OptionsWeb3 File Storage Options
Web3 File Storage Options
Ā 
Web3 Full Stack Development
Web3 Full Stack DevelopmentWeb3 Full Stack Development
Web3 Full Stack Development
Ā 
Instantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardInstantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standard
Ā 
Non-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceNon-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplace
Ā 
The Art of non-fungible tokens
The Art of non-fungible tokensThe Art of non-fungible tokens
The Art of non-fungible tokens
Ā 
Graph protocol for accessing information about blockchains and d apps
Graph protocol for accessing information about blockchains and d appsGraph protocol for accessing information about blockchains and d apps
Graph protocol for accessing information about blockchains and d apps
Ā 
Substrate Framework
Substrate FrameworkSubstrate Framework
Substrate Framework
Ā 
Chainlink
ChainlinkChainlink
Chainlink
Ā 
OpenZeppelin + Remix + BNB smart chain
OpenZeppelin + Remix + BNB smart chainOpenZeppelin + Remix + BNB smart chain
OpenZeppelin + Remix + BNB smart chain
Ā 
Chainlink, Cosmos, Kusama, Polkadot: Approaches to the Internet of Blockchains
Chainlink, Cosmos, Kusama, Polkadot:   Approaches to the Internet of BlockchainsChainlink, Cosmos, Kusama, Polkadot:   Approaches to the Internet of Blockchains
Chainlink, Cosmos, Kusama, Polkadot: Approaches to the Internet of Blockchains
Ā 
Dex and Uniswap
Dex and UniswapDex and Uniswap
Dex and Uniswap
Ā 

Recently uploaded

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
Ā 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
Ā 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
Ā 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
Ā 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
Ā 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
Ā 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
Ā 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
Ā 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
Ā 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noidabntitsolutionsrishis
Ā 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
Ā 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
Ā 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
Ā 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
Ā 
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...OnePlan Solutions
Ā 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
Ā 
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·åŠžē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·umasea
Ā 
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdfGOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdfAlina Yurenko
Ā 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
Ā 

Recently uploaded (20)

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
Ā 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
Ā 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
Ā 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
Ā 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
Ā 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Ā 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
Ā 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
Ā 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
Ā 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Ā 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
Ā 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Ā 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
Ā 
Hot Sexy call girls in Patel NagaršŸ” 9953056974 šŸ” escort Service
Hot Sexy call girls in Patel NagaršŸ” 9953056974 šŸ” escort ServiceHot Sexy call girls in Patel NagaršŸ” 9953056974 šŸ” escort Service
Hot Sexy call girls in Patel NagaršŸ” 9953056974 šŸ” escort Service
Ā 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
Ā 
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...
Maximizing Efficiency and Profitability with OnePlanā€™s Professional Service A...
Ā 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
Ā 
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·åŠžē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·
办ē†å­¦ä½čƁ(UQę–‡å‡­čƁ书)ę˜†å£«å…°å¤§å­¦ęƕäøščÆęˆē»©å•åŽŸē‰ˆäø€ęØ”äø€ę ·
Ā 
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdfGOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM ā€“ DEVOXX GREECE.pdf
Ā 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Ā 

ChatGPT Customization Guide

  • 1. ChatGPTs Gene Leybzon, Jim Steele December 7, 2023
  • 2. DISCLAIMER Ā§ The views and opinions expressed by the Presenter are those of the Presenter. Ā§ Presentation is not intended as legal or financial advice and may not be used as legal or financial advice. Ā§ Every effort has been made to assure this information is up-to-date as of the date of publication.
  • 3. Agenda for today 1. Introduction to ChatGPTs 2. Key Features 3. Creating CatGPT 4. Creating Text Style Artist 5. ChatGPT Actions 6. Domain Name Search 7. Questions and Open Discussions
  • 4. GPTs Value Proposition: Custom versions of ChatGPT that combine instructions, extra knowledge, and any combination of skills. Definition: Ability to be tailored to specific needs and applications. This customization allows users to create a ChatGPT model that is more directly useful and relevant to their individual or organizational requirements. GPTs enable users to incorporate specific instructions, additional knowledge, and various skills, enhancing their functionality in daily life, work, or other specific areas.
  • 5. There will be a GPT for everyone and everything https://openai.com/blog/introducing-gpts
  • 6. Key Features Personalization: ā€¢Ability to add specific instructions, enhancing the model's responses to fit particular needs. ā€¢Inclusion of unique knowledge sets, allowing the model to provide specialized information. Ease of Creation: ā€¢User-friendly interface enabling anyone to build a GPT without coding expertise. ā€¢Step-by-step guidance through the creation process, making it accessible for non-technical users. Versatile Applications: ā€¢Adaptability for various sectors such as education, business, entertainment, etc. ā€¢Examples of custom GPTs for tasks like teaching, customer support, and creative writing. Safety and Privacy Focused: ā€¢Strong emphasis on data protection and user privacy. ā€¢Options to control data sharing and usage, ensuring ethical AI practices. Community and Sharing: ā€¢Opportunities for sharing and discovering GPTs in the GPT Store. ā€¢Encouragement of community involvement in creating and improving GPTs.
  • 7. Demo 1: How to build šŸ±CatGPT šŸ±? Enter Application Name and Description Add/edit instructions Add application data (if any) Add or create icon Publish (for yourself) Test Publish to the World
  • 8. Add Name, Description, Prompt, and Conversation Starters
  • 9. Add/edit Instructions ā€œDevelop an interactive module that generates daily custom- tailored advice and interesting facts about cat care. This module should consider the specific breed, age, and personality traits of the user's cat. Include a daily trivia quiz about feline behavior and health, a feature for users to maintain a photo diary of their catā€™s growth and memorable moments, and a community forum where cat owners can connect, share experiences, and seek advice. The system should employ natural language processing to offer conversational and engaging content, ensuring a user-friendly and informative experience for all cat lovers.ā€
  • 10. Upload Relevant Files and select Capabilities
  • 11. Create or Upload App Icon
  • 13. Test
  • 15. Update Instructions ā€¦The system should employ natural language processing to offer conversational and engaging content, ensuring a user-friendly and informative experience for all cat lovers. Always provide URL with the link to relevant websites that talk about cat products and services
  • 16. Test Again, and Againā€¦
  • 18. Demo2: Text Style Artists Font Artist who make my text text elegant and stylized What would you like to make?
  • 19. Demo2: Text Style Artists Font Artist who make my text text elegant and stylized What would you like to make?
  • 20. Name the GPT and Create Icon
  • 21. Update GPT requirements from the chat ā€œShould produce all possible styles available from Unicode, such as Gothic/Bold Fraktur Script, Monospace Script, Bold Script, Sans Serif Bold, Double-Struck Script, as well as others.ā€ 'Elegant Text' is a formal and professional GPT specializing in typography, with the added capability to produce a wide range of styles available from Unicode. It can suggest and demonstrate text in styles like Gothic/Bold Fraktur Script, Monospace Script, Bold Script, Sans Serif Bold, Double-Struck Script, and more. This GPT guides users in selecting the perfect style to match the tone and purpose of their text, whether for academic, professional, or personal projects. It provides explanations for why certain styles are suitable for specific contexts, combining practical advice with typographic expertise. 'Elegant Text' maintains a formal demeanor while offering a rich variety of typographic options, making it a valuable resource for anyone looking to enhance their textual presentations. ā¬‡ļø ā¬‡ļø ā¬‡ļø ā¬‡ļø
  • 23. Connecting your GPT to your API Actions are custom functionalities that can be added to GPT models, allowing them to integrate with external data sources or interact with real-world systems. This feature extends the built-in capabilities of GPTs by enabling connections to databases, email systems, e-commerce platforms, and more. For example, a GPT could be integrated with a travel listings database, connected to a user's email inbox, or used to assist with online shopping.
  • 24. Action example: domain name search GPT 1.The User accesses and authenticates on ChatGPT at chat.openai.com. 2.The User sends a request. 3.ChatGPT calls the AWS Infrastructure, specifically the AWS API Gateway. 4.The AWS API Gateway triggers an AWS Lambda function. 5.AWS Lambda checks domain availability via DNS. 6.DNS returns the domain status to AWS Lambda. 7.AWS Lambda returns the result to the AWS API Gateway. 8.The AWS API Gateway sends the response back to ChatGPT. 9.ChatGPT responds to the User.
  • 27. Ī» - FUNCTION 'use strict'; import { resolve } from 'dns/promises'; function isValidDomain(domain) { const domainRegex = /^(?!-)([A-Za-z0-9-]{1,63}(?<!-).)+[A-Za-z]{2,}$/; return domainRegex.test(domain); } export const handler = async (event, context, callback) => { console.log('Received event:', JSON.stringify(event, null, 2)); let body; let statusCode = '200'; const headers = { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': '*', 'Access-Control-Allow-Headers': '*' }; console.log("event", event); const domainName = event.queryStringParameters.name; console.log("domain:", domainName); let isAvailable = false; let message = ""; if (isValidDomain(domainName)) { try { await resolveDomain(domainName); } catch (error) { isAvailable = true; } if (isAvailable) { message = `${domainName} seems to be available (no DNS records found)!`; } else { message = `${domainName} has DNS records. It's likely taken.`; } } else { message = "Ivalid domain name"; } body = JSON.stringify({ domainName: domainName, available: isAvailable, message: message }); return { statusCode, body, headers, }; }; const resolveDomain = async (domainName) => { try { return await resolve(domainName); } catch (error) { throw error; } };
  • 32. Architecture of AI Systems - Direct User Interaction with LLM Summary: User communicates directly with web-based application, for example, by connecting to https://chat.openai.com/
  • 33. Architecture of AI Systems - Direct User Interaction with LLM

Editor's Notes

  1. https://chat.openai.com/gpts/editor
  2. /FelineBehaviorGLS.pdf
  3. https://chat.openai.com/g/g-VQeRrefbz-catgpt
  4. Font Artist who make my text text elegant and stylized
  5. Font Artist who make my text text elegant and stylized
  6. Should produce all possible styles available from Unicode, such as Gothic/Bold Fraktur Script, Monospace Script, Bold Script, Sans Serif Bold, Double-Struck Script, as well as others
  7. Elegant Text Certainly! The phrase "Hello!" in Gothic Script, particularly in a style resembling traditional Blackletter or Fraktur, looks like this: š”—š”„š”¢ š”­š”„š”Æš”žš”°š”¢ "š”—š”„š”¢š”©š”©š”¬!" š”¦š”« š”Šš”¬š”±š”„š”¦š”  š”–š” š”Æš”¦š”­š”±
  8. 'use strict'; import { resolve } from 'dns/promises'; function isValidDomain(domain) { const domainRegex = /^(?!-)([A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,}$/; return domainRegex.test(domain); } export const handler = async (event, context, callback) => { console.log('Received event:', JSON.stringify(event, null, 2)); let body; let statusCode = '200'; const headers = { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': '*', 'Access-Control-Allow-Headers': '*' }; console.log("event", event); const domainName = event.queryStringParameters.name; console.log("domain:", domainName); let isAvailable = false; let message = ""; if (isValidDomain(domainName)) { try { await resolveDomain(domainName); } catch (error) { isAvailable = true; } if (isAvailable) { message = `${domainName} seems to be available (no DNS records found)!`; } else { message = `${domainName} has DNS records. It's likely taken.`; } } else { message = "Ivalid domain name"; } body = JSON.stringify({ domainName: domainName, available: isAvailable, message: message }); return { statusCode, body, headers, }; }; const resolveDomain = async (domainName) => { try { return await resolve(domainName); } catch (error) { throw error; } };