Automations
Let Daneshyar work on its own — for example answering questions in a Telegram or Bale group.
An automation is a job Daneshyar does without you pressing a button. Every automation has two parts: when it starts (for example, when someone asks in a group) and what it does (for example, answer from your files and post it in the group).
Get answers in a Telegram or Bale group
To get answers in a group, you only connect the group. You do not build anything: once it is connected, the bot answers from this workspace's documents by itself. Open Automations → Connections.
Make a connection
Pick the Telegram or Bale tab, press Add and save.
Add the bot to your group
The box shows the bot's name, for example
@daneshyar_info_bot. Add it to your group, like any other member. In Bale, also make the bot a group admin — otherwise Bale does not show it the group’s messages, and nothing happens when you send the code.Send the message in the group
The box shows a ready message: the bot's name and a code. Copy it and send it in that same group.
Wait for “Connected”
A few seconds later the bot writes “Connected” in the group, and the box in Daneshyar turns green. From now on, anyone in the group can ask the bot.
@daneshyar_info_bot What is the difference between mitosis and meiosis?”. A few seconds later the bot answers in the group, from that class's handout. Under each answer there is a “ساختهشده با دانشیار” (Made with Daneshyar) button that opens our website.- Always start with the bot's name. Type @ and pick the bot from the list. In a group, the bot does not see messages that do not mention it.
- Ask for the answer at a time. For example “
@daneshyar_info_botat 13:48 give me a summary of the video”. The bot says OK right away and posts the answer once, at 13:48 Tehran time. Up to 5 waiting answers per chat, at most 24 hours ahead. - Where you send the message matters. The chat that gets the message is the one that is linked. If you send it to the bot in a private chat, your private chat is linked, not the group. To fix it, press Use another chat and send the new message in the group.
- One connection = one chat. For three groups, make three connections, one per group. They can all be in the same workspace.
- One group = one workspace. If a group is already linked to another workspace, the bot says so and does not link it again. Remove the old connection first.
- To move a connection to a different chat, press Use another chat. You get a new message to send; the old chat stops getting answers until you send it.
- Google Drive: you can connect your Google account, but Daneshyar does not read Drive files yet.
- If you do not see the Bale tab, it has not been turned on for you yet.
Create an automation
For other jobs, for example a summary every week or a quiz, the easiest way is to ask the chat. You do not have to set anything up by hand.
Tell the chat what you want
For example: “Every Saturday at 8, write a summary of this workspace's files and send it to our Telegram group.” Daneshyar builds the automation and tells you.
Take a look
Open Automations → Workflow. You see the steps from top to bottom; press one to see or change its settings. Canvas shows the same steps in a bigger view.
Save and turn it on
Press Save, then Turn on. To try it once, press Run now.
- Every automation is in one of these states: Draft (not turned on yet), Active (working) or Paused (off for now). Press Pause to switch it off until you turn it on again.
- A step shown in red has a problem. Fix it or delete it before turning the automation on.
- If you change a manual or scheduled automation and save it, it goes back to Draft — remember to press Turn on again after saving.
When it starts and what it does
An automation can start like this:
- By hand: only when you press Run now.
- On a timer: at times you choose, in your own time — for example every Saturday at 8 am. This works the same when you ask the chat (“every day at 13:20”). The action card shows the time.
- A message in Telegram or Bale: when someone mentions the bot in a linked group, or writes to it in a linked private chat. You get this one by itself when you connect a chat (see above).
- Started by other services: coming soon.
…and do these jobs:
- Answer a question from the workspace's files.
- Write a summary of the workspace's files.
- Make a quiz (a few short questions) from the files — for example for revision.
- Send a message to a group or chat in Telegram or Bale.
See what it has done
Automations → Runs lists every time an automation has worked — like a logbook.
- For each run you see when and how it started, how long it took and how it ended: Waiting, Running, Done or Failed.
- Press a run to see its details. If it started from Telegram or Bale, you also see the Question and the Answer.
- If a run failed, the reason is written right there. Fix the step, save, and try again.
Privacy and cost
Every answer an automation writes costs a little from your wallet, just like answers in the chat.