First, we need to retrieve the pipeline id. If you created the pipeline via the API, you should have the id in the response. Otherwise you can list the pipelines and get the id from there. From the platform, you can navigate into the pipeline page and check the id in the browser url.
pipelines_api = v.PipelinesApi(api)
response = pipelines.start_deep_research(org, pipeline_id, v.StartDeepResearchRequest(
# make sure to include a relevant prompt here
query="What is the meaning of life?",
# optionally enable additional search on the web
web_search=False,
))
research_id = response.research_id
const pipelineId = "your-pipeline-id";
const response = await pipelinesApi.startDeepResearch({
organization: org,
pipeline: pipelineId,
startDeepResearchRequest: {
// make sure to include a relevant prompt here
query: "Generate a report on financial status of company XX",
// optionally enable additional search on the web
webSearch: false
}
});
const researchId = response.researchId;