Skip to Content

Write Message Agent

An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)

Billable OperationProviderBilling Mode
Docs
Connection
Docs
Cost per operation
Docs
gemini-flash-latest-write-message
P
Gemini
Always
Managed, User

0.50 credits

Output Fields

const options = {
  method: 'POST',
  headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
  body: JSON.stringify({
    config: {environment: 'production'},
    pipes: [
      {
        pipe_id: 'message:write@1',
        config: {
          model: 'gemini-flash-latest',
          prompt: {
            template: '\nWrite an internal slack message that notifies the team about a high value signup \nthat customer success should reach out to personally.\n\nInclude the name of the new signup in your message:\n\n{{ input name type="string" }}\n\nAs well as the company name they work for:\n\n{{ input company_name type="string" }}\n            '
          }
        }
      }
    ],
    input: [{id: '1', name: 'https://pipe0.com', company_name: 'Pipe0'}]
  })
};

fetch('https://api.pipe0.com/v1/pipes/run', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));