talelog

Sign in

Integration
1. API key

Fetching API key...



2. Send a log

Log's can be anything that forms a picture:
A poorly made API request
A transciption of an online tutoring lesson
A user looking at product reviews

Log's are stored with Row level security and can only be accessed with both your API key and the user's identifier. As a best practice please give the identifier as a uuid, it is not neccessary or advised to use an email.

import Talelog from "talelog"; // or const Talelog = require("talelog");

const talelog = new Talelog("");
    talelog.send({ user_id: indentifier, event: "User viewed price history" })
    .then(console.log)
    .catch(console.error);
                    


3. Define a schema

Schemas represent what your users want to know or do. I.e. if you're running a store front your schema would be:

{
    "product_name": "null"
    "product_id": "null"
    "nudge_user": "be very casual"
}
                  

Schemas are defined here on the talelog webapp.
Leave the values as null. You have the option to set nudge_user as text, it is not neccessary but can be used to set the tone for a response, view section 4 on results to get an idea for this. You can write your schemas here.



4. Loop the results

Results are given as such:

[
    {
        "product_name": "black / gray samba",
        "product_id": "38273",
        "nudge_user": "Wanna see that black/gray Samba again?",
        "schema_name": "schema_recommend_products"
    },
    {
        "product_name": "blue / gray samba",
        "product_id": "29421",
        "nudge_user": "Hey, remember that blue/gray one?",
        "schema_name": "schema_recommend_products"
    }
]
                    

This means you can search across key schema_name and loop the results and give the other keys as props. i.e.

<ReccomendedProducts id={id} text={nudge_user} link={"/products/{id}"} />