What type of feed is most appropriate for a feed in a user profile that shows all of the posts that he or she has voted on? - getstream-io

I am writing an app where users can make posts.
Each post has a vote button. In the user's profile page, I would like to have a feed that shows all posts that were voted on by the user.
In this case, should I create a Flat Feed named "voted"? Then, would I add an activity to "voted" each time a user clicks on the vote button of a post? Is this best way?
I am new to the getstream API so any feedback to enhance my understanding of the API and its possibilities would be much appreciated. Thank you.

It seems that "vote" action in my case would be best represented as a "reaction" in the getstream API. So, the write up on reactions in the docs seems to be a good starting point: Reactions

Related

What is the best way to add a user feed to his own timeline?

I would like to build an Instagram-like social app, where on the user timeline, you also have his own activities displayed. My first thought was to follow his own user feed but from what I read in this blog post: https://getstream.io/blog/best-practices-for-instagram-style-feeds/
We recommend blocking a user's timeline feed from following their own user feed
Can someone explain why it would be a bad practice ? How could I implement my use case if that is the case ?
Thanks !
Looking at this myself. I think the logic they describe is incorrect. The full statement in context make a little more sense in terms of what I think they mean.
We recommend blocking a user's timeline feed from following their own
user feed, and also blocking users from seeing/following another
user's timeline feed.
The first part of the sentence I believe is backwards. What I think it should says is that the "user" feed should be blocked from following the "timeline" feed. The user feed should just contain actions that the user performed, so it shouldn't contain data from the timeline feed. But if you want the user's activities to appear in the timeline feed than it seems to me that you should definetly make the user's timeline feed follow thier user feed, and prevent the user's timeline feed from unfollowing their own user feed.
The second part that says you should block users from following another user's timeline feed. I believe this is correct because the timeline feed is a series of peronalised items for an individual user. It doesn't make sense to follow another user's timeline feed.
This is how I have implemented my logic and it seems to be working so far, but if I come across any issues with it I'll come back here and update this answer.

Basic Concept of Chatbot using Wit.ai

I am trying to create a chatbot application where user can create their own bot like Botengine. After going through google I saw I need some NLP api to process user's query. As per wit.ai basic example I can set and get data. Now I am confused, How I am going to create a botengine?
So as far I understand the flow, Here is an example for pizza delivery:-
User will enter a welcome message i.e - Hi, Hello ...
Welcome reply will be saved by bot owner in my database.
User will enter some query, then I will hit wit.ai API to process that query. Example :- Users query is "What kind of pizza's available in your store" and wit.ai will respond with the details of intent "pizza_type"
Then I will search for the intent return by wit in my database.
So, is that the right flow to create a chatbot? Am I in the right direction? Could anyone give me some link or some example so I can go through it. I want to create this application using nodejs. I have also found some example in node-wit, but can't find how I will implement this.
Thanks
What you need is webhook. You need to call different API's based on the user intent. I believe you can distinguish between different intents using parameters available in request. Check this out - Creating nodejs webhook for dialogflow

Direct link to newsletter - kentico 9

We are using kentico 9 at work for our website.
You can subscribe to our newsletter using a "box" which is integrated all the way down on our homepage.
However, I would like to have the opportunity to share a direct subscription link on social media so people can click on it and subscribe to the newsletter.
Now, I have to invite people to go on our website and to go down the page to subscribe which is inconvenient (nobody is going to do this).
I can't find a way to get a direct link (I'm not a developer).
Does anybody know how I could do it ?
Thanks in advance ! :D
Anne
If someone want to subscribe to newsletter, he/she must provide you with email address and I'm not sure that can be done with direct link, because you are not aware of user email address (your target group is unknown group from social media).
You can set up anchor in 'subscribe to newsletter' link, which will automatically scroll down your page to box at the bottom, but I don't think that is the best solution. Maybe, to create a new content page, with only purpose to subscribe users to newsletter (have some introduction text, and widget for 'newsletter' where users can subscribe). I don't know is that what you are looking for, but it is nicer solution then asking people to scroll down and subscribe to newsletter.
Best regards,
Dragoljub
My suggestion would be to create a specific landing page with that signup form on it. This way you can have a link you share in social media that takes them directly to that page and allows them to put in their info (first, last and email) and sign up for that specific newsletter. This way it's a specific call to action on that page and allows for the user to only do one thing.

How to implement a chatbot to human executive switch using Microsoft Bot Framework?

The exact point being, that I've created a bot that can take inputs from users in free form text and return relevant web links. Now the problem being, that in case the bot is not able to understand the user query, the control of the conversation has to be passed on to the human executive.
I've researched for over 2 days but could not find any such implementations. The closest I came was third party applications like ChatFuel, letsclap.io provide such a provision. So, there should be a way only that I am not able to find such a thing.
Any help on this would be appreciated.
one possible way is you can make a bridge, idea is as follow:
user send something that the bot cannot reply (conv-1)
make a new conversation with your human executive (conv-2)
forward user message to conv-2
human executive replied to the bot (conv-2)
capture the message and forward back to (conv-1)
See this link on how to start a new conversation:
https://docs.botframework.com/en-us/csharp/builder/sdkreference/routing.html#sendtoconversation
Hope it helps,
Maybe you can create some APIs in a WebApplication that will be used by your bot.
If the LUIS Intent "None" is called, you make a call to that API and start a new conversation with a human.
You can use this same process to manage all conversations in a WebApplication Chat Control

Is it possible to get the Instagram news feed through the API?

When you open the Instagram APP you can look at your news feed where you can see that someone is now following you, likes or has commented on a certain photo.
When I look at the Instagram API (http://instagram.com/developer/) I can retrieve likes and comments when I request a certain media ID. However in order to know if someone has commented on a photo of mine I would need to scan all the photo's and request it's comments to check if any new comments have been made.
Does anyone know of a better way? Help is appreciated.
If it helps, content for "Following" tab is available at http://instagram.com/api/v1/news/, and "News" tab at http://instagram.com/api/v1/news/inbox/ (you need to be logged in to your account).
All URLs point to internal instagram:// protocol so you would need to replace them when parsing and there seem to be no pagination options.

Resources