An AI agent specialized in composing emails.
Billable Operation | Provider | Billing Mode Docs | Connection Docs | Cost per operation Docs |
---|---|---|---|---|
gemini-flash-latest-write-email | P Gemini | Always | Managed, User | 0.50 credits |
This pipe's input fields can be configured by you.
const options = {
method: 'POST',
headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
body: JSON.stringify({
config: {environment: 'production'},
pipes: [
{
pipe_id: 'email:write@1',
config: {
model: 'gemini-flash-latest',
persona: 'customer_success',
signature: '\nJohn Doe\nHead of Customer Success\n[LinkedIn](https://https://linkedin.com/li/john-doe)\n ',
prompt: {
template: '\nWrite a welcome message for new users of my app Pipe0.\n\nPipe0 is a data enrichment framework that serves both software engineers working on products that \nuse data enrichment and GTM professionals.\n\nUse the job title of the user to figure out which function the new user has: {{ input job_title type="string" required="true" }}.\n\nCustomize the message using the name of the user: {{ input name type="string" required="true" }}.\n '
}
}
}
],
input: [{id: '1', job_title: 'GTM Engineer', name: 'Pipe Piper'}]
})
};
fetch('https://api.pipe0.com/v1/pipes/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));