Chatbot de subvención
Chatbot de subvención
POST https://api.test.fandit.es/api/v2/funds/chatbot/
Petición para resolver preguntas sobre una subvención concreta mediante el asistente de IA, acotando las respuestas a la documentación de esa subvención.
Cabeceras
| Authorization string | |
|---|---|
| Token de usuario (Obligatorio). |
Parámetros del cuerpo (body params)
Respuesta
Object
response string
curl--request POST \--url 'https://api.test.fandit.es/api/v2/funds/chatbot/' \ import requests
url = "https://api.test.fandit.es/api/v2/funds/chatbot/"
response = requests.post(url)
print(response.status_code)
print(response.json())
const url = "https://api.test.fandit.es/api/v2/funds/chatbot/";
const options = {
method: "POST",
headers: {
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
const url: string = "https://api.test.fandit.es/api/v2/funds/chatbot/";
const options: RequestInit = {
method: "POST",
headers: {
}
};
const response = await fetch(url, options);
const data: any = await response.json();
console.log(data);
<?php
$url = "https://api.test.fandit.es/api/v2/funds/chatbot/";
$curl = curl_init($url);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
]
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.io.IOException;
import okhttp3.*;
public class FanditApiExample {
public static void main(String[] args) throws IOException {
OkHttpClient client = new OkHttpClient();
String url = "https://api.test.fandit.es/api/v2/funds/chatbot/";
Request request = new Request.Builder()
.url(url)
.post()
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}
}
}
Respuesta Ejemplo de respuesta
{
"response": "El plazo de solicitud para el Kit Digital - Segmento III permanece abierto hasta agotar el presupuesto asignado o, como máximo, hasta el 31 de diciembre de 2026. Se recomienda presentar la solicitud lo antes posible, ya que la concesión se realiza por estricto orden de entrada."
}