Yellow.ai
Connect your Yellow.ai bot from Connecter > Yellow.ai in the Oktivo dashboard. The connector works in two directions.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
Get the API key from Yellow.ai
Find the bot ID and region host
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.Connect in Oktivo
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.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.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
Turn on Create leads from chatbot
Pick a time window
Click Sync now
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:Open your bot flow
Save the answer to a user property
Do the same for name and email
Publish the bot and test
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
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 examplekeus_userdetails) instead of user properties, Sync now can read that table directly.
Check your bot saves visitors to a table
Choose the table
Check the columns
sender_num). Change any that are wrong. The phone column is required. Optionally add a filter, such as bot_type equals Bot / Website.Preview and save
Click Sync now
+91; other numbers need a country code.Create leads from your chatbot
Generate a secret
Turn on Create leads from chatbot
Add an API node in Yellow.ai Studio
API node settings
The settings panel in Oktivo shows the exact URL and a ready-to-copy example. Use those values.Body
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.
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: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
+91). For visitors in other countries, make your flow add the country code before it sends the number.FAQ
Does it copy my whole Yellow.ai contact list into Oktivo?
Does it copy my whole Yellow.ai contact list into Oktivo?
What happens if the same visitor is sent twice?
What happens if the same visitor is sent twice?
Will a lead be created without a phone number?
Will a lead be created without a phone number?
Why does Log call activity do nothing?
Why does Log call activity do nothing?
Does changing a lead's status in Oktivo update Yellow.ai?
Does changing a lead's status in Oktivo update Yellow.ai?
Can I use the same bot in two Oktivo accounts?
Can I use the same bot in two Oktivo accounts?
What happens if I disconnect?
What happens if I disconnect?
Where is my API key stored?
Where is my API key stored?