Input

Generate an ad copy for the product: Wireless Earbuds.

The copy consists of four parts, following the AIDA Framework.
1 - Attention
2 - Interest
3 - Desire
4 - Action

The copy for each part is clear and concise.

Sample Response

1 - Attention: "Looking for a pair of wireless earbuds?"
2 - Interest: "These earbuds are perfect for working out."
3 - Desire: "You can use these earbuds to listen to music or take calls."
4 - Action: "Buy these earbuds today!"

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Generate an ad copy for the product: Wireless Earbuds.\n\nThe copy consists of four parts, following the AIDA Framework. \n1 - Attention\n2 - Interest\n3 - Desire\n4 - Action\n\nThe copy for each part is clear and concise.',
6  max_tokens=150,
7  temperature=0.3,
8  k=0,
9  p=0.95,
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
temperature 0.3
k 0
frequency_penalty 0
p 0.95
presence_penalty 0
max_tokens 150