API and SDK that enables AI Agents to contact humans for feedback, input, and approvals.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
humanlayer: {
type: "app",
app: "humanlayer",
}
},
async run({steps, $}) {
const data = {
"run_id": "run_120", //adjust your run and call ids
"call_id": "call_640",
"spec": {
"msg": "Can someone approve this small typo fix PR? Just stumbled upon those while testing other stuff?",
"subject": "Small PR fix",
"channel": {
"email": {
"address": "superman@pd.com",
"subject": "Small PR fix",
"in_reply_to": "msg_790"
}
}
}
}
return await axios($, {
method: "post",
url: `https://api.humanlayer.dev/humanlayer/v1/human_contacts`,
headers: {
Authorization: `Bearer ${this.humanlayer.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.