YandexGPT API without code: a template that answers with AI text
A YandexGPT API without code takes one ready-made nana800 template: a webhook receives the request, YandexGPT writes the text, and a response block sends it back in the same request. You do not need a Yandex Cloud key or account, because nana800 connects to Yandex on its own. Your balance is topped up to $3.50 for free every month, and no card is needed to start.
Build it in the builder
Chain of blocks
- 1
Trigger
button starts the scheme by hand for testing: YandexGPT gets the prompt from the template, and the answer shows up in the run history of the scheme. The button is free.
- 2
Trigger · Webhook (trigger)
webhook receives a request at the scheme address. The template uses the GET method and the "/" path, which you change to your own. The request body, the parameters after ? and the headers go to the next block.
- 3
Action · YandexGPT text
Yandex GPT text request sends the prompt to YandexGPT. The template has a sample prompt about five travel destinations, creativity 0.5 and the MEDIUM answer length. You add the system instruction and the request data.
- 4
Action · Webhook response
webhook response answers the sender with code 200 and plain text: the word "Response:" followed by the AI answer.
What it is good for
- Product descriptions for a website or catalog: the site sends a name and specs and gets back a finished text
- Answers to common customer questions in a website chat or a mobile app
- Sorting incoming requests: the model picks the topic or pulls the name, phone number and essence out of the text
- A short summary of a long email, review or document for a CRM or an accounting system
- Connecting YandexGPT to your own software that can send HTTP requests, without dealing with Yandex Cloud
How to set it up
- 1
Create a scheme from the template
In the builder open Templates, find the Ask GPT request template and click Use. Choose the project and scheme to create it in, then click Create. The blocks arrive already connected.
- 2
Set up the webhook address
In the webhook block pick the method: GET if the text comes in the address after ?, or POST if it comes in a JSON request body. Enter your own path starting with "/", for example /ask.
- 3
Write the prompt for YandexGPT
In the Yandex GPT text request block describe the role and rules in the system context prompt field, for example: "You write short product descriptions for an online store". In user prompt replace the sample with your task and insert a field from the request, such as text from the body or from the address parameters.
- 4
Turn the scheme on and test it with the button
Turn the scheme on, then press the button in the button trigger and open the run history: the finished text is in result_text of the YandexGPT block. A button run has no request data, so for the first test write a sample right into the prompt. The webhook response block shows an error on such a run because nobody waits for the answer, which is expected.
- 5
Send a request over the API
Click the API button in the builder and copy the webhook address. Send a test request on the Try it tab: the AI answer comes back in the response body. While the scheme is on, it costs $0.0042 per hour.
Services in this template
- 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.
- YandexGPT and YandexART
Use YandexGPT without code for posts, customer replies and daily digests, and YandexART for images. No Yandex Cloud key needed, 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