Task Ingestion
Create and refine tasks using natural language
Overview
The Task Ingestion Beta endpoints enable customers or AI agents to become automatic power users of the Task API. It simplifies the process of creating tasks by automatically generating the appropriate prompt and schemas based on your intent.
These endpoints are available to beta customers only; please contact our team if interested in trying them out.
Suggest Task
Turn a user’s intent into a complete Task best fit for the Task API.
- Input: Natural language intent. For example “Given a company website and name, give me the date and investor of their most recent funding round”
- Output: Task Prompt, Input Schema, Output Schema
Intent should be declarative and concise. It should describe what the user has as possible inputs and what they would like as possible outputs.
Users can also refine their tasks using this endpoint. They can change the input fields, output fields, and include natural language feedback in update_instructions. For example, a user might add cto_name as an output field, and give feedback to the system that “I also want the name fo the company’s cto”. The Task can then be updated using the same endpoint.
Example request for creating a new task:
Example request for refining an existing task:
The endpoint returns a complete task specification:
Save Task and Select Processor
Save the task and automatically select the best processor out of a list of processors.
- Input: All processors to choose from , final TaskSpec (input, output, prompt, Task ID) — taken from the /suggest endpoint.
- Output: Task ID, best fit processor name
Example request:
Example response:
Streaming Ingest
This provides a streaming response for ingest.
Inputs:
- user_intent [required]: user intent in natural language
- input_schema_keys [optional]: the keys of the inputs that the user already has
- output_schema_keys [optional]: the keys of the outputs that the user wants
- metadata [optional]: if there are any additional fields that the user wants to add to the task
Outputs:
- streaming prompt
- well-formatted valid json input and output schema
Example request: