Recommended Content
Set Up via OpenAI Embeddings
1. Sign up for OpenAI
- Sign up for an OpenAI account or sign into your existing one.
- If creating a new account, complete the verification process (requires confirming your email and phone number).
- Log into your account and go to the API key page.
- Click
Create new secret key
and copy the key that is shown.
2. Configure OpenAI API Keys under Tools > ClassifAI > Recommendation Service > Recommended Content > Settings
- Select OpenAI Embeddings in the provider dropdown.
- Enter your API Key copied from the above step into the
API Key
field. - Once valid credentials are saved, embeddings will be generated for all existing posts that don't have embeddings already.
3. Add the "Recommended Content" block to your content
- Edit an existing page and add in the new Recommended Content block.
- This defaults to rendering 3 items that meet the threshold criteria set. This can be changed to render more or less. Note though that only items that meet the threshold will be used, so less items may be shown than selected. If no items meet the threshold, the block will instead pull from the most recent posts.
- This block will render using the template selected in the settings. This template can be modified in the block editor.