<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>सतत (Posts about chat)</title><link>https://baali.muse-amuse.in/</link><description></description><atom:link href="https://baali.muse-amuse.in/categories/chat.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:baali@muse-amuse.in"&gt;शांतनु/Shantanu&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Tue, 08 Apr 2025 06:33:20 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Engaging with "I have an idea" pitch</title><link>https://baali.muse-amuse.in/posts/what-will-it-cost.html</link><dc:creator>शांतनु/Shantanu</dc:creator><description>&lt;div id="outline-container-org6b2b49d" class="outline-2"&gt;
&lt;h2 id="org6b2b49d"&gt;Some Background&lt;/h2&gt;
&lt;div class="outline-text-2" id="text-org6b2b49d"&gt;
&lt;p&gt;
I am a software engineer, working from home, in a neighborhood where the idea is still catching up. Often folks would ask me about what exactly I do and at times conversation would segue into them running their product idea through me. The questions would be: can it be done(Yes), what would it take(app, servers? aka nuts and bolts), how much would it cost and in the end an assertion, "It can work, right?". There is this particular fella with whom I used to play gully cricket and stuff when we were younger. His elder brother is also software engineer working in a bank. He has done, running app idea, with me couple of times already. Sharing one such conversation:
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div id="outline-container-org44e6c5e" class="outline-2"&gt;
&lt;h2 id="org44e6c5e"&gt;Phone call&lt;/h2&gt;
&lt;div class="outline-text-2" id="text-org44e6c5e"&gt;
&lt;p&gt;
him&amp;gt; Yaar/Dude, how much would it cost to make an Android App?
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; Umm…. &amp;lt;confused&amp;gt;. It depends on what App you want to make bhai.
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; Let us say, I want to make a app around delivering grocery items. This lockdown is really hard. There is no business. No timeline on when will it resume. I have been thinking lately to do something in meanwhile. You know to keep the cash flowing. Something.
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; I can understand bhai. But this domain is tough. There is a lot of competition. Many people are doing this. Narrow margins and often there are none.
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; We will start with this colony. Just make them buy from us, give them discount. You just tell me, how much will it cost? Can I get good folks to develop for me?
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; It will cost yaar. It won't be cheap.
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; I want something simple. A friend of mine recently released similar grocery App. It was bad, really bad. There was no way to search items. He hired someone and he charged him almost 2Lakh INR, took four months and made this unusable, crappy App. I can do something better.
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; That is cheap re.
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; Cheap? 2 Lakh? That is not cheap. In these tough times, he won't be able to get his investment back from this App.
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; Well, that's the problem right? In such a business, with money constraints, &lt;i&gt;you invest to save money, you can't invest expecting it(App) to make money.&lt;/i&gt;
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; What?
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; In your case, Software or "App" is either expanding your customer base or automating something. It would be reducing manual work and saving you time in some way. Let us assume you have an existing business, you have your customers, inventory and folks that work in the shop. Now in lockdown you want to start home delivery. Okay, it makes sense. People can call or text their items to your Watsapp number and you have them delivered.
&lt;/p&gt;

&lt;p&gt;
him&amp;gt; Yes. But then, what does the app do?
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; Getting there. You have some person manning your Watsapp and your phone. Noting down orders making sure they are getting delivered. You existing supply chain. Now as you grow, it will be hard to manage all this, taking calls, reading texts, coordinating and delivery. In that particular scenario you want to optimize your distribution and ordering and inventory system. There investing in the App makes sense. You have fixed inventory, people scroll, place an order and on your side of App, you have way to make sure that all orders are fulfilled.
&lt;/p&gt;

&lt;p&gt;
me&amp;gt; Again, without such operation, you can't invest in App expecting it will start making you money. Does that make sense? Also, trust me, hiring a good developer to deliver you an working App would cost &lt;b&gt;good&lt;/b&gt; money. Start small, start taking orders, phone, text. Reconsider App when you have things working and have some surplus to improve the process.
&lt;/p&gt;

&lt;p&gt;
He was advised similarly from other folks(including his elder brother) too. After a few days, he called again saying he has started taking the orders and if I need anything, I should give him a call or text him.
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description><category>chat</category><category>project</category><guid>https://baali.muse-amuse.in/posts/what-will-it-cost.html</guid><pubDate>Wed, 27 May 2020 04:25:29 GMT</pubDate></item><item><title>backspace</title><link>https://baali.muse-amuse.in/posts/backspace.html</link><dc:creator>शांतनु/Shantanu</dc:creator><description>&lt;p&gt;
Ritesh: BACKSPACE, write a post/poem and then hit backspace and
publish.
&lt;/p&gt;

&lt;p&gt;
Me: Actually I realized, when we write something with Pen,
"destroying" it will need more serious efforts. You will have to
scratch it out, shred your paper or literally burn it. And still,
there are actual physical evidence of the work. With digital, these
backspace or CTRL+Z, they just obliterate what you just did. Physical
evidence of those &lt;a href="https://xkcd.com/378/"&gt;flipping bits&lt;/a&gt; are hard to notice or observe.
&lt;/p&gt;

&lt;p&gt;
Ritesh: Yes, same thing with Photography, as digital cameras came to
space the whole scenario exploded. Earlier with analog photographs,
people were very mindful of their shots as their resources were
limited.
&lt;/p&gt;

&lt;p&gt;
Ritesh: We can't backspace what we speak no???
&lt;/p&gt;

&lt;p&gt;
&lt;span class="timestamp-wrapper"&gt;&lt;span class="timestamp"&gt;&amp;lt;2019-04-10 Wed 10:59&amp;gt;&lt;/span&gt;&lt;/span&gt;: And now I remember &lt;a href="https://punchagan.muse-amuse.in/blog/2018-in-review/"&gt;punch's&lt;/a&gt; post about being
Deliberate with your plans/actions.
&lt;/p&gt;</description><category>analog</category><category>chat</category><category>writing</category><guid>https://baali.muse-amuse.in/posts/backspace.html</guid><pubDate>Wed, 10 Apr 2019 05:07:17 GMT</pubDate></item><item><title>Extending Zulip to provide Chat-With-Us - Helpdesk interface.</title><link>https://baali.muse-amuse.in/posts/extending-zulip-to-provide-chat-with-us-helpdesk-interface.html</link><dc:creator>शांतनु/Shantanu</dc:creator><description>&lt;p&gt;
Here is the github repo: &lt;a href="https://github.com/baali/chat-with-us"&gt;https://github.com/baali/chat-with-us&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
We at &lt;a href="https://www.taxspanner.com/"&gt;TaxSpanner&lt;/a&gt; had been using &lt;a href="https://www.olark.com/"&gt;olark&lt;/a&gt; to help out our customers over
chat interface. While there interface is very mature and gives all the
features they mention, we were not able to manage things in terms of
how customer was reaching out us via different mediums(email, chat,
phone). As &lt;a href="https://github.com/zulip/zulip"&gt;zulip&lt;/a&gt; got released and we were giving it a try for our
internal team communication(both tech+sales team) idea was floated
that &lt;code&gt;could we extend the same interface to our customers too?&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
We set the target to get a prototype in place which could replace
olark and if during trails feature requests are reasonable and
manageable we would take a call. So idea was to expose a limited view
to customers while having full feature interface for our Support
Team. We created two stripped down and simple html templates which
would be exposed to customers. Got a view in place in lines of home
view of zulip with additional logic to route customers to sales
team. Notifications for offline and online sales team, additional
small checks in main zulip views to make sure basic views are exposed
just to internal team.
&lt;/p&gt;

&lt;p&gt;
Like function &lt;code&gt;get_status_dict&lt;/code&gt; in &lt;code&gt;zerver/libs/actions.py&lt;/code&gt; there is a
hook for MIT users,
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c1"&gt;# Return no status info for regular users&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;requesting_user_profile&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;realm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ADMIN_DOMAIN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;defaultdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;
and additional check to home in views:
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;zerver.forms&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;has_valid_realm&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;has_valid_realm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;django.contrib.auth&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;logout&lt;/span&gt;
    &lt;span class="c1"&gt;# making sure user is logged out from session.&lt;/span&gt;
    &lt;span class="n"&gt;logout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/support'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;
For adding this interface on landing page we added following HTML
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;lt;div id="zulip" style="bottom: 0px; right: 0px; position: fixed; z-index: 9999;" &amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;div style="width: 200px; height: 32px;" id="zulip-chat"&amp;gt;
      &amp;lt;div&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;
            &amp;lt;span class="icon--speech-bubble"&amp;gt;&amp;lt;/span&amp;gt;
            Chat with Us!
          &amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div&amp;gt;
      &amp;lt;br&amp;gt;
      &amp;lt;iframe id="zulip-iframe" height="350px" width="450px" style="border:1px solid gray; display: none;" src=""&amp;gt;&amp;lt;/iframe&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
and this java-script code to handle user clicks
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;lt;script&amp;gt;
  $('#zulip-chat').on('click', function(e) {
  if ($('#zulip-iframe').is(':hidden')) {
    $('#zulip-iframe').attr('src', 'https://url-to-zulip-instance');
  }
  $('#zulip-iframe').toggle("slow");
  });
&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;
At the moment we auto-login customer after asking their email-id. For
security purpose, we create a new private stream for the customer and
unsubscribe it form previous existing streams. Ideally there should be
a way(OAuth or server-to-server authentication) to make sure user is
logged in on main site and then enable previous history of chats they
had done.
&lt;/p&gt;

&lt;p&gt;
I am not exactly sure about this (ab)Use-case of Zulip and quite
possibly there could be something which I am overlooking/missing. But
zulip has a really strong chat interface around which if we can
integrate our APIs, it will give us a lot of control. Adding bots,
notification, some simple intelligence and developing things on top of
it could enable and extend the existing web application in lot of
ways.
&lt;/p&gt;</description><category>chat</category><category>python</category><category>zulip</category><guid>https://baali.muse-amuse.in/posts/extending-zulip-to-provide-chat-with-us-helpdesk-interface.html</guid><pubDate>Sun, 20 Dec 2015 12:03:40 GMT</pubDate></item></channel></rss>