Introduction

In this guide we'll walk through the process of linking Cerb to Tavily. You'll be able to use Tavily's full API as an LLM tool for when you don't want or need semantic search.

Get a Tavily API Key.

Log in to your Tavily Account or sign up if you don't already have one.

Your API key should be available on your Tavily home page. Click the copy button to copy it to your clipboard.

Create the Tavily service in Cerb

  1. Navigate to Search » Connected Services.

  2. Click the (+) icon in the top right of the list.

  3. Select Tavily.

  4. Paste the key you copied earlier in the API Key field.

  5. Click the Create button.

Examples

https://docs.tavily.com/api-reference/endpoint/search

start:
  http.request/search:
    output: http_response
    inputs:
      method: POST
      url: https://api.tavily.com/search
      authentication: cerb:connected_account:tavily
      headers:
        Content-Type: application/json
      body:
        query: What is KATA?
        include_domains@csv: cerb.ai
    on_success:
      set:
        response@json: {{http_response.body}}
        http_response@json: null

Extract

https://docs.tavily.com/api-reference/endpoint/extract

start:
  http.request/extract:
    output: http_response
    inputs:
      method: POST
      url: https://api.tavily.com/extract
      authentication: cerb:connected_account:tavily
      headers:
        Content-Type: application/json
      body:
        urls@list:
          https://cerb.ai/docs/automations/
        include_images@bool: no
        extract_depth: basic
    on_success:
      set:
        response@json: {{http_response.body}}
        http_response@json: null