< Back to examples

Email Copy

Generate an Email given a description

Input

Write a cold outreach email introducing myself as Susan, a business development manager at CoolCompany, to Amy who is a product manager at Microsoft asking if they'd be interested in speaking about an integration to add autocomplete to Microsoft Office.

Sample Response

Hi Amy,

I hope this email finds you well. I am Susan, a business development manager at CoolCompany, and we are interested in discussing an integration to add autocomplete to Microsoft Office.
Autocomplete is a useful feature that can help users quickly find what they are looking for in Microsoft Office. It can also help reduce spelling errors and improve efficiency.

We would be happy to discuss our proposal with you to see if there is any interest in our autocomplete integration. Please let me know if you would be available for a meeting or phone call sometime in the next week to discuss.

Thank you,

Susan

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Write a cold outreach email introducing myself as Susan, a business development manager at CoolCompany, to Amy who is a product manager at Microsoft asking if they\'d be interested in speaking about an integration to add autocomplete to Microsoft Office.',
6  max_tokens=200,
7  temperature=0.9,
8  k=0,
9  p=1,
10  frequency_penalty=0,
11  presence_penalty=0,
12  stop_sequences=[],
13  return_likelihoods='NONE')
14print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizecommand
p 1
presence_penalty 0
max_tokens 200
temperature 0.9
k 0
frequency_penalty 0