Skip to main content

Yellow.ai

Connect your Yellow.ai bot from Connecter > Yellow.ai in the Oktivo dashboard. The connector works in two directions.
Availability depends on your Oktivo plan. If you do not see the Yellow.ai tile in Connecter, ask support to enable it.

What you get

Website chatbot to Oktivo lead. When a visitor shares a phone number in your Yellow.ai chatbot, Oktivo creates a lead (or updates the lead that already has that number) and saves the chat on it. Your team can then call the lead from Oktivo. Oktivo call result to Yellow.ai. After an Oktivo call finishes and has been analysed, Oktivo writes the contact and the call status onto the matching customer profile in Yellow.ai.

Before you start

  • A Yellow.ai bot, and a Yellow.ai user who can open Settings > API Keys.
  • An Oktivo account with the Yellow.ai connector enabled.
  • For chatbot leads: someone who can edit the bot flow in Yellow.ai Studio.

Connect your bot

1

Get the API key from Yellow.ai

In Yellow.ai, open Settings > API Keys and create or copy an API key for your bot.
Treat the key like a password. Do not paste it into chat, email, or a document.
2

Find the bot ID and region host

The bot ID identifies your bot, for example x1234567890123. The region host is the Yellow.ai address for your region, for example cloud.yellow.ai. Type only the host name. A leading https:// or a trailing / is removed for you.
3

Connect in Oktivo

Open Connecter, find Yellow.ai, and click Connect. Enter the API key, the bot ID, and the region host. Oktivo checks them with Yellow.ai before saving. The key is encrypted and is never shown again.

If connecting fails

Settings

After connecting, click Settings on the Yellow.ai card. Your choices are saved and shown again when you reopen the panel. Pulling your existing Yellow.ai contacts into Oktivo is also not available yet.
Only a finished, analysed call sends data to Yellow.ai. Changing a lead’s status by hand in Oktivo does not.

Sync now: pull chatbot leads on demand

There are two ways to get chatbot leads into Oktivo. Sync now needs no change in Yellow.ai. The API node method below sends each lead the moment the phone is shared. You can use either or both.

What it does

When you click Sync now on the Yellow.ai card, Oktivo uses your connected API key to look at the visitors who chatted with your bot recently. For every visitor who shared a phone number, it creates a lead (or updates the lead that already has that number) and saves the chat on it. Nothing runs by itself yet. Leads arrive only when you click.
Yellow.ai only lets Oktivo read the newest 10,000 profiles (about the last 12 days on a busy bot), so Sync now cannot reach older visitors. It also only finds leads whose phone number the bot captured: saved on the Yellow.ai profile, or typed by the visitor in a chat that Yellow.ai returns. Many website chats never store a phone number on the profile, and Yellow.ai may return no chat text for them. Those visitors are counted as “no phone number” and no lead is created. If this is your case, use the API node method, which sends the phone number the moment the visitor shares it.

When to use it

  • You want leads from your chatbot with only a small bot-flow change (see Prepare your Yellow.ai bot).
  • You want to catch up on chats from the last few days.
  • You use the API node method and want to double-check nothing was missed.

How to run it

1

Turn on Create leads from chatbot

Open Settings on the Yellow.ai card and turn the switch on. No secret is needed.
2

Pick a time window

Choose Last 24 hours, Last 3 days or Last 7 days next to the button.
3

Click Sync now

The button shows a spinner while it works. A result card appears when it finishes. A run can take up to about 40 seconds.

Prepare your Yellow.ai bot

Sync now can only create a lead when Yellow.ai holds the visitor’s phone number. If your bot asks for the phone number in the chat but does not save the answer, Yellow.ai keeps no phone on the visitor’s profile and returns no chat text, so Oktivo has nothing to read. Fix this once in Yellow.ai Studio:
1

Open your bot flow

In Yellow.ai Studio, open the flow that asks the visitor for their phone number.
2

Save the answer to a user property

Click the question node that asks for the phone number. In its settings, choose to store the response in a user property and pick phone.
3

Do the same for name and email

Repeat for the name question (property firstName) and the email question (property email).
4

Publish the bot and test

Publish, chat with your bot once, then click Sync now in Oktivo. The visitor should appear as a lead.
Want the lead the moment the visitor shares their phone, with the full chat? Add the Oktivo API node instead, or as well. See Create leads from your chatbot.

Reading the result

Tips

  • The phone number must be captured: either saved on the Yellow.ai profile, or typed by the visitor in the chat (for example after the bot asks for it). Numbers without a country code are treated as Indian (+91).
  • A longer window finds older chats but takes more runs when you have many visitors.
  • If your Yellow.ai API key has an IP allow-list, add the IP address of the Oktivo server, or Sync now is rejected.
  • Each click checks up to about 60 visitors. If the card says it stopped early, click again.
  • Only one sync can run at a time for your account.

If Sync now shows a problem

In Sync activity, rows named sync-now:... summarise a run. They are not lead changes, and they never show as successful leads.

Known limitations

  • Sync now only looks at the newest 10,000 profiles. Yellow.ai refuses to list further back, so older visitors are never scanned.
  • Yellow.ai lists visitors by most recent activity. Oktivo checks this on every run. If it cannot confirm it, it imports nothing rather than guess.
  • Sync now only finds leads with a phone number captured by the bot (on the profile, or typed in a chat that Yellow.ai returns). Yellow.ai may return no chat messages for some website chats, which is normal.
  • Phone numbers found in chat text are matched by rule. An unusual format can be missed.
  • Only the latest chat of each visitor is saved per run, and chats are cut at 500 messages.
  • If your bot saves visitors to a Database table, read them from there instead: see Read leads from a Yellow.ai Database table.

Read leads from a Yellow.ai Database table

If your bot flow saves every visitor into a Yellow.ai Database table (for example keus_userdetails) instead of user properties, Sync now can read that table directly.
1

Check your bot saves visitors to a table

In Yellow.ai open Data > Database and confirm the table has the visitor’s phone number.
2

Choose the table

In Oktivo open the Yellow.ai Settings and find Lead source table. Click Choose table and pick yours.
3

Check the columns

Oktivo suggests the columns for name, phone, email, alternate phone and the chat user id (sender_num). Change any that are wrong. The phone column is required. Optionally add a filter, such as bot_type equals Bot / Website.
4

Preview and save

Preview shows up to 5 recent rows with the name, phone and email partly hidden. Then click Save.
5

Click Sync now

Sync now reads the rows updated in the lookback window and creates or updates leads.
Rows without a valid phone number are skipped. If the main phone column is empty or invalid, the alternate phone column is used. A 10-digit mobile number starting with 6 to 9 and no country code is treated as +91; other numbers need a country code.
Running Sync now again creates no duplicates: rows that did not change since the last run are reported as unchanged. When a table is selected, Sync now reads only the table. Profile scanning is not run unless it is requested.
Yellow.ai can encrypt the text of chat messages. When it does, Oktivo cannot read the chat history through the API, so no transcript is saved. The lead page then shows that the chat is encrypted and how many messages it has, and the lead details come from the table columns. You can read the chat in Yellow.ai Conversations.

Create leads from your chatbot

1

Generate a secret

In the Yellow.ai settings, click Generate secret. Oktivo shows it once. Copy it and keep it somewhere safe.
If you click Generate secret again to replace it, the old secret stops working immediately. Update the Yellow.ai API node straight away or new chats will be rejected.
2

Turn on Create leads from chatbot

You can turn this on at any time. The secret is only needed so the API node can prove it is your bot.
3

Add an API node in Yellow.ai Studio

Add an API node right after the step where the bot collects the visitor’s phone number, and set it up as shown below.

API node settings

The settings panel in Oktivo shows the exact URL and a ready-to-copy example. Use those values.

Body

The {{{...}}} names are examples. Variable names differ from bot to bot, so replace each one with the matching variable from your own flow. Remove any field your flow cannot supply.
Send the transcript or a summary if your flow can. For long chats, send userId and leave out the transcript: Oktivo then fetches the whole chat from Yellow.ai itself. Fetching with userId has not been confirmed against a live bot, so it may not work for every setup. If it fails, the lead is still created and keeps the summary.
Oktivo accepts a request body of up to 100 KB. A very long transcript sent in the request can be larger than that and is refused, and the lead is not created. For long chats, send userId instead of the transcript.

What is saved from Yellow.ai

  • The full chat. Every message, in order, with who wrote it (visitor, bot or agent) and the time. Sending the same chat again changes nothing. Sending a longer version of the same chat adds the new messages. A shorter, older copy is ignored.
  • Profile details. Details such as name, email, city and country are copied to the lead only where the lead has nothing better yet. An existing name, email or location is never overwritten. Everything else (language, time zone, last channel and your own Yellow.ai properties) is kept in the Yellow.ai profile card on the lead. If you turned off pulling name or email in your field mapping, those two are not copied, but they still show in the profile card.
  • Optional profile lookup. Oktivo can also look up the profile from Yellow.ai with userId. This is switched off by default because it has not been confirmed against a live bot. Ask your administrator if you want it enabled.

Test it

Ask a developer to send this request with your own values, or use the example in the settings panel:
The first call creates a lead. Sending the same request again changes nothing, and you still have one lead.

How leads appear in Oktivo

  • The lead’s channel is Yellow.ai and its source is Website chatbot. You can filter on both in the lead list.
  • Your bot ID is saved on the lead.
  • The chat is saved as one entry in the lead’s conversation timeline, counted under Notes. The entry shows the last few messages. Click View full chat to read the whole conversation as a scrollable chat with visitor, bot and agent bubbles and times. Long chats load 100 messages at a time as you scroll, with Load more, Jump to latest and Load older buttons.
  • If a chat was very long, a banner tells you that only part was saved. If it is still being copied from Yellow.ai, the banner says it is still syncing. If the copy stopped early, it says Partially synced and finishes the next time Yellow.ai sends the same chat.
  • A collapsible Yellow.ai profile card (in the Marketing section of the lead) lists the details Yellow.ai had for the visitor. It is hidden when there are none.
  • Deleting the lead also deletes its saved chat.
  • If the phone number already belongs to a lead (added by hand, imported, or from another connector), that lead is updated instead of duplicated. It keeps its original channel. The chatbot visit is added to its history.
  • If the same visitor chats again with a different conversation, the new chat is added as another entry.

Sync activity

Click Sync activity on the Yellow.ai card to see recent activity, newest first. You will see one row for each lead created or updated from the chatbot, and one for each push after a call. Rows marked skipped were not processed on purpose, for example because a setting was off, the phone number was missing, or the chat could not be fetched. Rows marked failed include the reason.

Troubleshooting

A phone number without a country code is treated as Indian (+91). For visitors in other countries, make your flow add the country code before it sends the number.

FAQ

No. It only creates a lead when a visitor shares a phone number, either through your bot flow or when you click Sync now (which looks only at recent chats). Importing all existing Yellow.ai contacts is not available yet.
Nothing is duplicated. The same delivery is recognised and ignored. A repeat visit with the same phone number updates the existing lead.
No. A request without a valid phone number is refused and no lead is created.
Oktivo does not write call summaries to Yellow.ai yet. The switch is a placeholder until that is available.
No. Only a finished, analysed call sends data to Yellow.ai, and what it sends is the call outcome.
No. A bot can be connected to one Oktivo account at a time.
Syncing stops and your Yellow.ai settings and secret are removed. If you reconnect later, you start with the default settings and generate a new secret.
It is encrypted and never shown again. To change it, connect again with the new key. Your settings are kept when you reconnect without disconnecting first.

Lead Capture

Other ways to bring leads into Oktivo

CRM Integration Guide

Generic CRM setup with code samples