Ask factories for a quote with your AI
The question this guide answers
How can an AI app ask factories for a quote on behalf of a buyer?
Someone who needs a thing made, such as roof trusses for a house or a batch of cut steel parts, usually writes to several workshops, waits, and then compares answers that come back in different shapes. Grietens is a network of factories that make things to order, and it can do the asking. A person can use the request page at https://grietens.cloud/request. This guide describes the other way in, where the AI app of the buyer asks the network directly. That can be Claude, ChatGPT or any agent that can send HTTP requests.
No account is needed. The buyer does not sign up anywhere, and the AI app needs no key.
What happens to a request
A request says what is needed, and it can carry drawings, photos or PDF files. Nothing else is needed to send it. As soon as it says what is needed, Grietens sends it to every factory on the network that agreed to take open requests and lists that product. Where it goes, by when and how many can go with it when the buyer already said them, but nobody has to ask for them first. A factory that stated a delivery radius, and whose distance to the place of the buyer is larger than that radius, is not asked. Anything that is not known never excludes a factory.
Each factory answers through its own quoting service, which Grietens calls a quote engine. Some answer within minutes, others after hours or days. The answer is the own estimate or quote of the factory, and the factory is responsible for it. Grietens passes it on unchanged and never edits a price. A delivery time is what the factory states.
The email of the buyer is not needed to send a request. It is asked only when the buyer likes one quote and wants that factory to make contact. Then that one factory gets the email, together with any phone number or note the buyer adds, and the other factories never see them. Email addresses and phone numbers inside the text of a request are masked before the request reaches a factory.
Every request is kept, also one that no factory can answer yet. In that case nothing is sent anywhere, and the answer says so plainly.
A request does not need the exact product word of a factory. Every factory on the network is labelled with one to three categories, such as timber construction, joinery, sheet metal and laser cutting or CNC machining, and every request carries one category too. When no open factory lists a product word that the request names, the request goes to the open factories of its category, at most twenty of them, the nearest first when the place is known. A buyer who writes "something in timber for my house" reaches the timber factories this way. A factory that does not make the thing declines.
Step 1. See what the network makes
The open factories list the products they make as plain words, such as roof_trusses. The list changes as factories join and leave. Through MCP the tool network_guide returns the current words and the countries the factories are in, the list of categories, and the rules of the network. The same list of categories, with the name of each and what it covers, is at https://app.grietens.cloud/api/public/categories and needs no login. A request that matches neither a product word nor the category of an open factory is still kept, but no factory is asked.
Step 2. Ask through MCP
An AI app that supports remote MCP servers can add the Grietens buyer server as a custom connector. Its address is https://app.grietens.cloud/api/v1/network/mcp and it needs no login.
The tool request_quotes takes the fields of the request and returns a secret token, the page link of the request, its state and the next step in plain words. The other tools work on that token.
get_quotesreads the state again, with every quote that has arrived.add_file_from_urladds one drawing or photo from a public link while the request is still a draft.submit_requestsends a draft.ask_factory_to_contactpasses the email of the buyer, and any phone number or note, to one factory that sent a quote.report_orderrecords whether the buyer ordered from that factory.
Step 3. Ask with one HTTP call
An agent without MCP sends one POST request. The values below are a made-up example.
POST https://app.grietens.cloud/api/public/requests/direct
Content-Type: application/json
{"summary": "Roof trusses for a 12 x 9 m house, hip roof", "place": "Liepaja",
"file_urls": ["https://example.com/roof-plan.pdf"], "source": {"agent": "my assistant"}}
Only the summary is required. When the AI app knows what kind of thing it is, it can add "category" with one key from the list of categories, for example "timber_construction". Without it Grietens reads the category from the summary. Do not ask the person for an email, a place, a date or a number of pieces before sending. Give a place, a date or a quantity only when the person already said them. The place is a town, a region or an address. The date is written as year, month and day. The language can be English or Latvian. Up to ten file links can be given, and the name in source.agent tells the operator of the network which app made the call.
The answer holds the token, the page link, the status, how many factories were asked, one line per file link, the full state and a sentence that says what to do next. The document at https://app.grietens.cloud/api/public/openapi.json describes every public endpoint in OpenAPI form.
Step 4. Keep the token and come back later
The token is the only permission for the request. Anyone who holds it can read the state, so it belongs with the buyer and nowhere else. The page link, which is the address of the request page followed by the token, shows the same state to a person, as a conversation with the quote cards under it.
Quotes come in one by one. The state lists each factory that was asked, with its public name, its town, its distance from the place of the buyer and its state, which is working, quoted, declined or no answer. Once a factory has answered with a price, the state carries the quote with its price or range, currency, scope, assumptions, delivery time and the date it is valid until.
While a factory is still to answer, its stage says more. It is sending, sent, working or trying again. Working means that the engine of the factory said the quote follows later, and Grietens does not know whether software or a person works on it. Trying again means that nobody answered the call yet and Grietens calls again by itself. From its third answer on, a factory also carries its usual reply time in seconds, which is the median of its own past answers through Grietens, together with how many answers it rests on. It is a counted fact about that one factory, not a promise and not a ranking.
Each factory carries one mark. The mark grietens means a verified company whose own work also runs on Grietens, with a Grietens box that reported in the last 30 days. The mark verified means that Grietens checked the company in the company register. The mark unchecked means that nobody at Grietens has checked the company yet. The marks say nothing about the quality of the work. The state also carries what each factory says about itself, its website and the centre of its town, never its own address. A factory with enough history also shows one counted line, such as how many requests it answered and how fast. Grietens adds no score and no ranking.
Step 5. When the buyer likes a quote
Only now does the AI app ask the buyer for an email. It can also ask for a phone number and a note with anything the factory should know, such as by when the thing is needed, how many and where it should go. The phone and the note are optional. Through MCP the tool ask_factory_to_contact takes them together with the factory. Without MCP the same goes in one POST to the contact address of the request.
POST https://app.grietens.cloud/api/public/requests/<token>/contact
Content-Type: application/json
{"dispatch": "<the id of the factory>", "email": "buyer@example.com",
"phone": "+371 2000 0000", "note": "Needed by March, 12 trusses, to Liepaja."}
Only that factory gets them, and only once. The other factories keep working on the request as it was sent. The contact address also still takes needed_by, quantity and place as separate fields.
Step 6. A draft for a person to finish
Sometimes the buyer wants to add drawings by hand first. With submit set to false the request is kept as a draft and nothing is sent. The person opens the page link, adds the drawings with the plus button and sends it there. The AI app can also send it later with submit_request, or with a POST to the submit address of the request.
Ask one factory by its own link
Some factories on Grietens have their own quote link, such as https://grietens.cloud/q/kalns, and may show it on their own website. The same address with .md at the end, such as https://grietens.cloud/q/kalns.md, is a plain text page that describes these steps for software. To ask that factory and no other, the AI app adds the name after /q/ as "shop": "kalns" to the same HTTP call or to request_quotes. The request then goes to that factory only, also when it declines, and never to the rest of the network. A name that is unknown, or a factory that takes no requests right now, gets the same plain refusal as its page. Everything else works as above, with the token, the files, the state and the contact step.
Files
A file link must be a public https address. Grietens fetches the file itself, only from public addresses, and keeps it with the request. It takes PDF files, photos (JPEG, PNG, WebP and HEIC) and drawings (DWG, DXF, IFC and STEP) up to 50 MB each. Programs, scripts, archives and web pages are refused whatever their name says. A link that cannot be taken is reported in the answer, and the rest of the request goes on. A factory receives each file as a download link that works for one hour.
Limits
This door is open to every AI app, so it has limits on volume, never on what can be asked. One email can be used for five requests a day, one request answers a limited number of calls per hour, and the network takes a fixed number of requests from AI apps per day. Past a limit the answer is one plain sentence that says when to try again.
What the buyer should know
- A price is the estimate or quote of the factory, as the factory calls it, and the factory stands behind it.
- Some quotes arrive within seconds and others take minutes or hours. The usual reply time of a factory, when it has one, says what to expect from that factory.
- Saying what is needed is enough to get quotes. The email, a phone number and a note come later, only for the factory the buyer picks.
- The email and the phone number go to one factory only, and only when the buyer asks for it.
- Grietens sends no email today, so the page link is the way back to the request.
- What the buyer asks for may be counted in anonymous price figures, which hold the kind of job, its size and the prices quoted. Never the name of the buyer, the contact details, the files or the words of the request.