- Home
- Integrations
- Webhook
- Webhook + OpenAI (ChatGPT)
ChatGPT API without code: take a request, ask OpenAI, send the answer back
A ChatGPT API without code in nana800 takes three blocks: a webhook receives a request from your site or service, the OpenAI block answers it, and the response block returns text or JSON to the caller. All you need is your own OpenAI key, no server and no developer. Model tokens are billed in your OpenAI account, block runs come from your nana800 balance, which is topped up to $3.50 for free every month.
Build it in the builderWhat you can automate
- Answer visitor questions: a widget on your site sends the question to the webhook and the model answer goes back to the page
- Parse leads: the model pulls the name, phone and request out of free text and returns them as JSON
- Write product descriptions from the title and specs your admin panel or inventory system sends
- Describe a photo by its link: what the product shot shows, whether there is a defect, whether it fits the listing
- Tag support requests with a topic and urgency so your system knows where to route them
How to set it up
- 1
Get an OpenAI key
In your OpenAI account open API keys, click Create new secret key and copy the key that starts with sk-... The OpenAI account needs a positive balance: you pay OpenAI for tokens, nana800 does not resell them.
- 2
Add the webhook
A webhook is an address your site sends data to. Create a scheme in the builder and add the webhook trigger. Set method to POST and path to something like /ask. Whatever your site sends lands in the request body, and parameters after the ? sign land in query.
- 3
Set up the OpenAI block
Add the Open AI request block in TEXT_COMPLETION mode and paste the key. The default model fits most tasks. Put the question from the webhook body into the prompt field, and use the system instruction field for the role and tone, for example "answer briefly, like a shop assistant".
- 4
Send the answer back
Add the webhook response block. Put text_response of the OpenAI block into body raw and keep status OK. If you chose the json_object response format, return the ready json_response object through body json.
- 5
Turn the scheme on and send a test request
A webhook answers only while its scheme is on. Click the API button in the builder, open the Try it tab, put a JSON body with a question and click Send. The request really runs the scheme and the model answer shows up below. An enabled scheme costs $0.0042 per hour.
Pricing
A run of a Webhook block costs up to $0.001, a run of a OpenAI (ChatGPT) block costs $0.002. Every month the balance is topped up to $3.50 for free, an enabled scheme costs $0.0042 per hour.
Services in this connection
- Webhook
Receive website leads and service events with a webhook and answer requests with no server and no code. Free balance every month, no card needed.
- OpenAI (ChatGPT)
Use the ChatGPT API without code: reply to leads, summarize emails, read photos, get JSON for tables and generate images. Your OpenAI key, free balance every month.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder