Please enable JavaScript.
Coggle requires JavaScript to display documents.
Variable Commands - Coggle Diagram
Variable Commands
default
answer
match
/\w+_\d+/ %sys.lastMessage
Yes
%pattern=/(\w+)_(\d+)/
%sheet=$1
%line=$2
%sheetName=/get
https://api.pipe.bot/calc
expr=preg_replace('%pattern','%sheet','%sys.lastMessage')
Sheet name: %sheetName
No
match
/[a-zA-Zа-яА-Я\s]+/ %sys.lastMessage
WORD
?sys.lastMessage=/faqqq
$SYS.GET
QUESTION
doc=%sheetId
range=common!A1:B20
ANSWER
%questions
https://api.pipe.bot/docs/spreadsheets/read
%questions[0]
?sys.lastmessage=/faq
$SYS.GET
https://sheets.googleapis.com/v4/spreadsheets/1dWEuiCcvCLlU8h5Gnxe1H6kunVQG7JpVSXF-1rGuDpg/values/commonOld!A1:Z2
%error=$.error %questions
%values=$.values %questions
%message=Про что вы хотите узнать?
%columnNumber=0
1 more item...
?error
Ошибка: %error
%error=null
ANSWER
%questions
Authorization: Bearer %googleToken
QUESTION
majorDimension=COLUMNS
start
%sheetId=1dWEuiCcvCLlU8h5Gnxe1H6kunVQG7JpVSXF-1rGuDpg
%googleToken=$.access_token %sys.googleOAuth2