skip to Main Content

Cohere Actions

Once you have connected your Cohere account to WordPress, you can use Cohere actions in your Automator recipes.

Action – Use a prompt to generate a text response with a Cohere model

The action Use a prompt to generate a text response with a Cohere model enables AI text generation for use in your workflows.

Uncanny Automator action dropdown list for Cohere, showing the action “Use a prompt to generate a text response with a Cohere model”.

Once you select the action, Automator will present you with a form to customize your prompt. The options are:

Model: Cohere has several AI models with different capabilities, speeds, and usage constraints. To learn more about the various models and their applications, click here.

Safety mode: To ensure appropriate responses in different contexts, Cohere introduced different safety modes. To learn more about safety modes, click here.

Temperature: This parameter controls the randomness of the AI model’s response. Higher temperatures correlate to more randomness and “creativity”. To learn more about temperature, click here.

Max tokens: In large language models, tokens are the basic building blocks of text— words or parts of words—that the model reads and processes. Generally, with Cohere, one word is between 2-3 tokens. To learn more about tokens, click here.

System instructions: A set of instructions given to guide the AI model’s behavior and set its “role” or tone for a conversation or prompt. Examples could be:

  • You are an experienced WordPress developer with a niche interest in AI models and LLMs.
  • You are a passionate WordPress blogger with a flair for the poetic.
  • You are an SEO expert with up-to-date knowledge of Google’s guidelines and practices.

Prompt: This is the prompt that will be sent to Cohere’s AI model to tell it what text to generate. Examples could be:

  • Write a blog post about how to connect WordPress to Cohere using Uncanny Automator.
  • Write a poem about using AI to write WordPress blog posts.
  • Write a story about the best automation plugin for WordPress adding support for Cohere.

Once you have configured your Cohere action, you can use the AI model’s response in subsequent actions with the help of tokens.

Uncanny Automator action token selector for Cohere with red arrows pointing to an asterisk and the “Response” token.

Best practices

AI integrations are powerful tools, and AI models often need a while (typically 5-30 seconds) to “think”.

In the free version of Uncanny Automator, actions in recipes that come after AI integration actions are blocked from running until Automator gets a response. That way, Automator can be certain that data from the AI integration is available for later actions.

For front-end user activities that involve AI integrations, waiting for the response could make your site seem briefly unresponsive. If this is an issue for your users, consider adding a delay to the AI integration and subsequent actions. This causes the action to be scheduled for execution in the background, and the front-end user won’t need to wait for the action to complete.

As a rule of thumb, you can schedule the AI integration action for 1-2 seconds after recipe completion. Any actions that rely on the AI integration action can be set for 45 seconds or longer after completion, ensuring that the AI model’s response has been generated.

Knowledge Base Articles

Back To Top