December 3rd, 2024
New
Added /v1/suggest-column
and /v1/suggest-columns
endpoints that will help you bootstrap your Template or Table schemas.
Schema assistant operates with the same column_configs
as /v1/templates
and /v1/tables
endpoints.
Request
curl -X 'POST' \
'https://api.extruct.ai/v1/suggest-column' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <MY_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"column_configs": [
{
"kind": "input",
"name": "Website",
"key": "website"
}
],
"prompt": "i need to determine if this company provides unlimited PTO"
}
Response
{
"kind": "agent",
"name": "Unlimited PTO Policy",
"key": "unlimited_pto_policy",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research the company's policy on unlimited Paid Time Off (PTO). Determine if the company provides unlimited PTO and output the answer as either 'Yes', 'No', or 'Not Specified'. Company Website: {website}",
"output_format": "label",
"labels": [
"Yes",
"No",
"Not Specified"
]
}
}
Request
curl -X 'POST' \
'https://api.extruct.ai/v1/suggest-columns' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <MY_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"column_configs": [
{
"kind": "input",
"name": "Website",
"key": "website"
}
],
"prompt": "i am doing aerospace parts suppliers research",
"size": 5
}
Response
{
"kind": "agent",
"name": "Aerospace Parts Supplied",
"key": "aerospace_parts_supplied",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research and list the types of aerospace parts supplied by the company associated with the website {website}. Provide a concise description of the parts offered, formatted as a comma-separated list.",
"output_format": "text"
}
},
{
"kind": "agent",
"name": "Aerospace Industry Certifications",
"key": "aerospace_industry_certifications",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research and list the aerospace industry certifications held by the company associated with the website {website}. Provide a concise description of each certification, formatted as a comma-separated list.",
"output_format": "text"
}
},
{
"kind": "agent",
"name": "Aerospace Parts Supplier Locations",
"key": "aerospace_parts_supplier_locations",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research and list the locations of the suppliers of aerospace parts associated with the company at {website}. Provide a concise description of each location, formatted as a comma-separated list.",
"output_format": "text"
}
},
{
"kind": "agent",
"name": "Aerospace Parts Supplier Contact Information",
"key": "aerospace_parts_supplier_contact_info",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research and list the contact information for the suppliers of aerospace parts associated with the company at {website}. Include details such as phone numbers, email addresses, and any relevant contact person names. Format the output as a bulleted list for clarity.",
"output_format": "text"
}
},
{
"kind": "agent",
"name": "Aerospace Parts Supplier Quality Standards",
"key": "aerospace_parts_supplier_quality_standards",
"value": {
"agent_type": "research_pro",
"llm_model": "gpt4o-mini",
"prompt": "Research and list the quality standards adhered to by the suppliers of aerospace parts associated with the company at {website}. Provide a concise description of each standard, formatted as a comma-separated list. This information will help in understanding the quality assurance measures in place for the aerospace parts supplied. Reference the types of aerospace parts supplied by the company if necessary.",
"output_format": "text"
}
}
Learn more in API Documentation.
Happy company research!