In this series, we'll consider managing deals in Trello and analyzing them in Google Colaboratory.
Handles Trello + Google Colaboratory for managing opportunities. A simple context diagram is shown below.
I haven't used Google Colaboratory at the time of this writing, so the feasibility of such a configuration is not yet known. We will revise this article as soon as it is known. Even if it doesn't happen, it won't have much effect as this box will just replace the Jupyter Notebook.
As I myself will be the sales person and forecast meeting attendee listed here, my goal is to be easy for me to use and report. In addition, we will proceed on the premise that everything can be done with a free frame.
This article covers background topics and Trello preparation as an introduction.
The process introduced in the book THE MODEL/Yasutaka Fukuda (2019), which is highly evaluated as a sales textbook, is used as ** reference . I want to avoid mere impersonation, so I would like to refer to this and introduce it according to my company's culture and customers. Regarding this, Mr. Fukuda himself, the author of THE MODEL, said, " It is not good to implement THE MODEL as it is **" (https://note.com/yfukuda0709/n/na2ad992bdc83).
However, you and I, who are readers, have different circumstances, so we will start with the discussion based on the book.
I created the following board in Trello. How to operate is also described in red.
The contents of the phase names and definitions described here are quoted from those ** illustrated in THE MODEL introduced above. You can change it according to your corporate culture and customers. I am operating with a different phase definition.
I think it's a good idea to keep this phase definition prominent in early operations and on new member boards. For those who do not understand the sales process, the phase name alone does not make sense, and there is a high possibility that the process will become a mere ghost.
In addition, each definition card describes the criteria for transition to the next phase as follows. (This is also a quote from THE MODEL)
Name each matter card {Customer Name} _ {Matter Name} so that you can see the details of the matter as follows.
We have also adopted some of the rules below for processing in Python in the future.
Get the API token by referring to the official guide (https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/) and the guide that came out by google.
Visit here: https://trello.com/app-key
Copy and paste the key into Notepad to move to the token generation screen.
Click the link above and scroll down to see the screen below.
You can see that the token is generated when you click "Allow". Copy and paste this into Notepad as well.
Please do not share keys or tokens.
Qiita is like a programming information knowledge community, so I also have to share programming information in this article.
Install py-trello locally and try to get the card you created earlier. In addition, py-trello is also used in Google Colaboratory, but Google Colaboratory has not appeared yet in this article. If you do not check the operation locally, you do not need to read this chapter.
py-trello is a library for trello cooperation. Since it can be installed with pip, please install it in your own environment as shown below.
$ pip3 install py-trello
You can get various information from the board by pouring the following code in Python. If you make the same thing as me, you should get the same result. Please enjoy it.
from trello import TrelloClient
trello_client = TrelloClient(
#List the key and token you got earlier
api_key = '',
token = ''
)
#Get a list of board names
[x.name for x in trello_client.list_boards()]
#The target board'Opportunities'Get the board (it's a problem if the board name is not unique)
opps_board = [x for x in trello_client.list_boards() if x.name == 'Opportunities'][0]
#Get a list of matter phases
opps_board.get_lists(list_filter='all')
# [<List Ph.1 lead or more and less than negotiation>, <List Ph.2 Recognition of business issues>, <List Ph.3 Evaluation and selection>, <List Ph.4 Final negotiations and decision making>, <List Ph.5 Approval approval process>, <List Closed (Won/Lost)>]
#Acquire the number of projects in each phase
{x.name: len([y for y in x.list_cards() if not y.name.startswith('.')]) for x in opps_board.get_lists(list_filter='all')}
# {'Ph.1 lead or more and less than negotiation': 1, 'Ph.2 Recognition of business issues': 0, 'Ph.3 Evaluation and selection': 0, 'Ph.4 Final negotiations and decision making': 0, 'Ph.5 Approval approval process': 0, 'Closed (Won/Lost)': 0}
#Customer name list
set(x.name.split('_')[0] for x in opps_board.get_cards() if not x.name.startswith('.'))
# {'Rip-off printing Co., Ltd.'}
This article covered the following topics:
Next time, I will deal with the following topics.
In the part related to business operation, I thought that if the completed system was introduced first, it would become a mere impersonator and the essence would not be visible. Another big reason is that it's not big enough to feel the need to pay for something that can be managed on post-it notes.
There is an API and it works slurping, and any operation can be realized. Also, even if Trello disappears at worst, you can replace it with Post-it.
Free Jupyter Notebook hosting service. In the worst case, if Google Colaboratory is gone, you can run Jupyter Notebook locally, and even if it is gone, you can replace it with a paper notebook.
The point is that no matter what happens, the operation of business negotiation management can be continued!
Recommended Posts