Skip to content
DaneshyarDocs
Sign in
  • Introduction
  • Quickstart
  • What is Daneshyar?
  • The Apps page
  • Inside an app
  • Workspace: files and chat
  • Sharing and members
  • Notes and dictation
  • Language practice
  • Appointment booking
  • Automations
  • The file reader
  • Your profile
  • Wallet
  • Customer chats
  • API keys
  • Authentication
  • Apps, workspaces, resources
  • Ingestion
  • Chat and sessions
  • Citations
  • Skills
  • Conventions
  • Workspaces
  • Resources
  • Chat
  • Skills
  • Errors
  • Customer support assistant
  • Internal knowledge base
  • Documentation chatbot
  • Academy tutor
  • Embedded widget
  • Widget configuration
  • Framework guides
  • Security
  • Troubleshooting
  • FAQ
  1. Docs
  2. User guide
  3. Automations

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).

Workspace page → the Automations button at the top. On a phone it is inside the ⋯ menu. Only the workspace owner sees it.

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.

  1. 1

    Make a connection

    Pick the Telegram or Bale tab, press Add and save.

  2. 2

    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.

  3. 3

    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.

  4. 4

    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.

Example: in the class group a student writes “@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_bot at 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.
The bot does not answer? Check five things: the bot is still a member of the group · in Bale, the bot is a group admin · you started with the bot's name, picked from the list · the connection says Connected for this group (not for your private chat) · your wallet still has money.

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.

  1. 1

    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.

  2. 2

    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.

  3. 3

    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.
Example: a tutoring centre adds the bot to a class group. A student mentions the bot and asks “What is the difference between mitosis and meiosis?” A few seconds later, the answer from that class's handout appears in the group.

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

An answer sent to Telegram or Bale leaves Daneshyar. These messengers are not covered by our privacy commitments. Do not put patient information, or any other confidential information, in a workspace that is connected to a messenger.

Every answer an automation writes costs a little from your wallet, just like answers in the chat.

Read next

Workspace: files and chatThe heart of Daneshyar: upload files, ask questions and get answers with their sources.Sharing and membersBring other people in: add colleagues as members, or make a link so anyone can ask questions.
PreviousAppointment bookingNextThe file reader

On this page

  • Get answers in a Telegram or Bale group
  • Create an automation
  • When it starts and what it does
  • See what it has done
  • Privacy and cost

Every example on this site runs against the live API. If one doesn't, tell us — that's a bug in the docs.

ServicesAboutTalk to us